q_id
int64 0
9.43k
| input_ids
sequencelengths 450
49.1k
| attention_mask
sequencelengths 450
49.1k
| labels
sequencelengths 450
49.1k
| input_text
stringlengths 1.82k
193k
| output_text
stringlengths 51
837
| input_prompt
stringclasses 215
values |
---|---|---|---|---|---|---|
2,845 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
18219,
63,
2456,
63,
3107,
851,
63,
31481,
38567,
12282,
345,
63,
3107,
1292,
63,
38689,
7,
508,
1350,
63,
3107,
9217,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
3107,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3956,
10592,
220,
16,
26,
4815,
2027,
851,
1393,
3107,
1292,
1393,
3107,
9217,
1393,
3107,
11703,
720,
260,
220,
16,
1393,
286,
33876,
5469,
1393,
415,
220,
9413,
17,
13,
2495,
1393,
257,
1695,
3044,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
13563,
63,
38689,
7,
1490,
1350,
63,
9103,
63,
38689,
7,
1135,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
310,
2686,
13563,
1393,
257,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
720,
260,
220,
16,
1393,
20275,
6069,
445,
6347,
1789,
4282,
21652,
220,
15805,
1393,
83705,
81,
8078,
1393,
260,
220,
15828,
1393,
1835,
38379,
1393,
262,
7427,
2355,
6343,
23421,
14700,
1595,
45945,
63,
2456,
63,
11296,
851,
63,
31481,
38567,
12282,
345,
63,
14073,
9209,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
11296,
1292,
63,
38689,
7,
1490,
1350,
63,
11296,
22942,
63,
38689,
7,
1490,
1350,
63,
11296,
9351,
63,
38689,
7,
1490,
1350,
63,
1045,
890,
762,
373,
29940,
63,
40462,
45718,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6444,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
14073,
9209,
1393,
11296,
1292,
1393,
415,
6130,
22942,
1393,
996,
6130,
9351,
1393,
1045,
890,
762,
373,
29940,
720,
692,
220,
16,
1393,
692,
44434,
1393,
262,
14662,
5867,
569,
1393,
16,
12,
18781,
12,
17735,
12,
22507,
24,
87,
21600,
2137,
1393,
939,
5676,
7911,
1774,
36587,
5181,
1393,
220,
679,
16,
12,
2371,
12,
914,
220,
1313,
25,
508,
25,
1758,
2355,
6343,
23421,
14700,
1595,
31504,
62,
25942,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
67,
4894,
29051,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
67,
4894,
29051,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
38229,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
67,
4894,
29051,
851,
720,
2342,
220,
16,
1393,
310,
220,
717,
2355,
6343,
23421,
14700,
1595,
31504,
54367,
45117,
82,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
8028,
30722,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
3107,
851,
720,
2342,
220,
20,
1393,
260,
220,
18,
2355,
6343,
23421,
14700,
1595,
29223,
62,
25942,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
1382,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
12210,
8028,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
38229,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
1382,
4878,
4229,
1393,
23108,
8028,
851,
1393,
220,
5150,
8028,
4257,
720,
1078,
220,
16,
1393,
692,
13346,
1393,
2342,
220,
23,
1393,
679,
23,
12,
2839,
12,
2437,
220,
1419,
25,
1627,
25,
777,
2355,
6343,
23421,
14700,
1595,
29223,
54367,
45117,
82,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
8028,
30722,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
3107,
851,
720,
1078,
220,
17,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
1595,
13084,
22056,
44357,
63,
2456,
63,
11296,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
5102,
1857,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
1045,
2401,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
11296,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
2907,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
60571,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
5102,
851,
1393,
692,
2457,
5791,
1393,
5102,
1857,
1393,
310,
2457,
2401,
720,
692,
220,
20,
1393,
260,
220,
21,
1393,
679,
21,
12,
2545,
12,
2705,
220,
777,
25,
1419,
25,
2790,
1393,
996,
4783,
1393,
679,
23,
12,
2437,
12,
914,
220,
868,
25,
1958,
25,
2970,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
5612,
63,
2456,
63,
9143,
851,
63,
31481,
38567,
12282,
345,
63,
9143,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
29209,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
65414,
10592,
220,
16,
26,
4815,
6149,
851,
1393,
9143,
1292,
1393,
9898,
1023,
29209,
13563,
720,
996,
220,
16,
1393,
33450,
12989,
12604,
1393,
8953,
6365,
13944,
4858,
80270,
198,
7229,
32103,
18295,
11,
39544,
220,
22424,
2495,
12,
14148,
15,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
2182,
2406,
56299,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
9143,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
1292,
63,
38689,
7,
1135,
1350,
34123,
6399,
12282,
29754,
2588,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
9143,
851,
63,
883,
79756,
1595,
39221,
2632,
5612,
63,
5931,
9143,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
29209,
46132,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
9143,
851,
1393,
2588,
6886,
851,
1393,
3813,
1292,
720,
256,
220,
1544,
4409,
28567,
1393,
415,
220,
806,
1393,
1733,
220,
20,
1393,
43,
28447,
648,
7813,
299,
35322,
2355,
6343,
23421,
14700,
1595,
1305,
15954,
63,
2456,
63,
99418,
851,
63,
31481,
38567,
12282,
345,
63,
99418,
62,
94306,
5617,
63,
38689,
7,
508,
1350,
63,
99418,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
27861,
10592,
220,
16,
26,
4815,
11092,
851,
1393,
99418,
62,
94306,
5617,
1393,
99418,
13563,
720,
996,
220,
16,
1393,
2342,
220,
23864,
605,
1393,
286,
64104,
64,
2355,
6343,
23421,
14700,
1595,
55352,
63,
2456,
63,
13243,
851,
63,
31481,
38567,
12282,
345,
63,
13243,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
13243,
1292,
63,
38689,
7,
1490,
1350,
63,
13243,
22942,
63,
38689,
7,
1490,
1350,
34123,
6399,
12282,
29754,
13243,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8420,
10592,
220,
16,
26,
4815,
9548,
851,
1393,
13243,
6886,
851,
1393,
13243,
1292,
1393,
13243,
22942,
720,
692,
220,
16,
1393,
1733,
220,
19,
1393,
286,
735,
47383,
1393,
220,
220,
23929,
12,
13655,
12,
12171,
16,
2355,
6343,
23421,
14700,
1595,
4531,
1586,
301,
1553,
552,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12804,
52881,
851,
63,
31481,
4276,
1808,
345,
63,
99418,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
99418,
851,
63,
883,
79756,
1595,
1305,
15954,
63,
5931,
99418,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
2907,
34123,
6399,
12282,
29754,
2588,
4229,
63,
883,
79756,
1595,
39221,
2632,
2182,
2406,
56299,
63,
5931,
2588,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12804,
52881,
851,
63,
883,
79756,
1595,
55352,
63,
5931,
13243,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2015,
18519,
1553,
552,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
12210,
8028,
851,
1393,
33490,
4878,
4229,
1393,
12804,
52881,
851,
1393,
99418,
851,
1393,
415,
9889,
4257,
720,
256,
220,
1544,
4409,
28567,
1393,
1835,
220,
806,
1393,
2342,
32082,
1393,
338,
220,
21,
1393,
415,
220,
806,
1393,
679,
23,
12,
2839,
12,
1691,
220,
410,
25,
3226,
25,
1313,
2355,
6343,
14711,
16225,
198,
4438,
1690,
2204,
8323,
5528,
527,
1070,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
8323,
9209,
8,
4393,
6444,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
8323,
9209,
8,
4393,
6444,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
### Question
How many different payment methods are there?
| [query_database(**{'query': 'SELECT count(DISTINCT payment_method) FROM customers'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
|
2,849 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
18219,
63,
2456,
63,
3107,
851,
63,
31481,
38567,
12282,
345,
63,
3107,
1292,
63,
38689,
7,
508,
1350,
63,
3107,
9217,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
3107,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3956,
10592,
220,
16,
26,
4815,
2027,
851,
1393,
3107,
1292,
1393,
3107,
9217,
1393,
3107,
11703,
720,
260,
220,
16,
1393,
286,
33876,
5469,
1393,
415,
220,
9413,
17,
13,
2495,
1393,
257,
1695,
3044,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
13563,
63,
38689,
7,
1490,
1350,
63,
9103,
63,
38689,
7,
1135,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
310,
2686,
13563,
1393,
257,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
720,
260,
220,
16,
1393,
20275,
6069,
445,
6347,
1789,
4282,
21652,
220,
15805,
1393,
83705,
81,
8078,
1393,
260,
220,
15828,
1393,
1835,
38379,
1393,
262,
7427,
2355,
6343,
23421,
14700,
1595,
45945,
63,
2456,
63,
11296,
851,
63,
31481,
38567,
12282,
345,
63,
14073,
9209,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
11296,
1292,
63,
38689,
7,
1490,
1350,
63,
11296,
22942,
63,
38689,
7,
1490,
1350,
63,
11296,
9351,
63,
38689,
7,
1490,
1350,
63,
1045,
890,
762,
373,
29940,
63,
40462,
45718,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6444,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
14073,
9209,
1393,
11296,
1292,
1393,
415,
6130,
22942,
1393,
996,
6130,
9351,
1393,
1045,
890,
762,
373,
29940,
720,
692,
220,
16,
1393,
692,
44434,
1393,
262,
14662,
5867,
569,
1393,
16,
12,
18781,
12,
17735,
12,
22507,
24,
87,
21600,
2137,
1393,
939,
5676,
7911,
1774,
36587,
5181,
1393,
220,
679,
16,
12,
2371,
12,
914,
220,
1313,
25,
508,
25,
1758,
2355,
6343,
23421,
14700,
1595,
31504,
62,
25942,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
67,
4894,
29051,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
67,
4894,
29051,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
38229,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
67,
4894,
29051,
851,
720,
2342,
220,
16,
1393,
310,
220,
717,
2355,
6343,
23421,
14700,
1595,
31504,
54367,
45117,
82,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
8028,
30722,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
3107,
851,
720,
2342,
220,
20,
1393,
260,
220,
18,
2355,
6343,
23421,
14700,
1595,
29223,
62,
25942,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
1382,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
12210,
8028,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
38229,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
1382,
4878,
4229,
1393,
23108,
8028,
851,
1393,
220,
5150,
8028,
4257,
720,
1078,
220,
16,
1393,
692,
13346,
1393,
2342,
220,
23,
1393,
679,
23,
12,
2839,
12,
2437,
220,
1419,
25,
1627,
25,
777,
2355,
6343,
23421,
14700,
1595,
29223,
54367,
45117,
82,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
8028,
30722,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
3107,
851,
720,
1078,
220,
17,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
1595,
13084,
22056,
44357,
63,
2456,
63,
11296,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
5102,
1857,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
1045,
2401,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
11296,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
2907,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
60571,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
5102,
851,
1393,
692,
2457,
5791,
1393,
5102,
1857,
1393,
310,
2457,
2401,
720,
692,
220,
20,
1393,
260,
220,
21,
1393,
679,
21,
12,
2545,
12,
2705,
220,
777,
25,
1419,
25,
2790,
1393,
996,
4783,
1393,
679,
23,
12,
2437,
12,
914,
220,
868,
25,
1958,
25,
2970,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
5612,
63,
2456,
63,
9143,
851,
63,
31481,
38567,
12282,
345,
63,
9143,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
29209,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
65414,
10592,
220,
16,
26,
4815,
6149,
851,
1393,
9143,
1292,
1393,
9898,
1023,
29209,
13563,
720,
996,
220,
16,
1393,
33450,
12989,
12604,
1393,
8953,
6365,
13944,
4858,
80270,
198,
7229,
32103,
18295,
11,
39544,
220,
22424,
2495,
12,
14148,
15,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
2182,
2406,
56299,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
9143,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
1292,
63,
38689,
7,
1135,
1350,
34123,
6399,
12282,
29754,
2588,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
9143,
851,
63,
883,
79756,
1595,
39221,
2632,
5612,
63,
5931,
9143,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
29209,
46132,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
9143,
851,
1393,
2588,
6886,
851,
1393,
3813,
1292,
720,
256,
220,
1544,
4409,
28567,
1393,
415,
220,
806,
1393,
1733,
220,
20,
1393,
43,
28447,
648,
7813,
299,
35322,
2355,
6343,
23421,
14700,
1595,
1305,
15954,
63,
2456,
63,
99418,
851,
63,
31481,
38567,
12282,
345,
63,
99418,
62,
94306,
5617,
63,
38689,
7,
508,
1350,
63,
99418,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
27861,
10592,
220,
16,
26,
4815,
11092,
851,
1393,
99418,
62,
94306,
5617,
1393,
99418,
13563,
720,
996,
220,
16,
1393,
2342,
220,
23864,
605,
1393,
286,
64104,
64,
2355,
6343,
23421,
14700,
1595,
55352,
63,
2456,
63,
13243,
851,
63,
31481,
38567,
12282,
345,
63,
13243,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
13243,
1292,
63,
38689,
7,
1490,
1350,
63,
13243,
22942,
63,
38689,
7,
1490,
1350,
34123,
6399,
12282,
29754,
13243,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8420,
10592,
220,
16,
26,
4815,
9548,
851,
1393,
13243,
6886,
851,
1393,
13243,
1292,
1393,
13243,
22942,
720,
692,
220,
16,
1393,
1733,
220,
19,
1393,
286,
735,
47383,
1393,
220,
220,
23929,
12,
13655,
12,
12171,
16,
2355,
6343,
23421,
14700,
1595,
4531,
1586,
301,
1553,
552,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12804,
52881,
851,
63,
31481,
4276,
1808,
345,
63,
99418,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
99418,
851,
63,
883,
79756,
1595,
1305,
15954,
63,
5931,
99418,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
2907,
34123,
6399,
12282,
29754,
2588,
4229,
63,
883,
79756,
1595,
39221,
2632,
2182,
2406,
56299,
63,
5931,
2588,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12804,
52881,
851,
63,
883,
79756,
1595,
55352,
63,
5931,
13243,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2015,
18519,
1553,
552,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
12210,
8028,
851,
1393,
33490,
4878,
4229,
1393,
12804,
52881,
851,
1393,
99418,
851,
1393,
415,
9889,
4257,
720,
256,
220,
1544,
4409,
28567,
1393,
1835,
220,
806,
1393,
2342,
32082,
1393,
338,
220,
21,
1393,
415,
220,
806,
1393,
679,
23,
12,
2839,
12,
1691,
220,
410,
25,
3226,
25,
1313,
2355,
6343,
14711,
16225,
198,
861,
279,
5144,
323,
14633,
315,
6444,
889,
2343,
291,
555,
44434,
3786,
13,
128009,
128006,
78191,
128007,
271,
58,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
6130,
9351,
1174,
220,
6130,
1292,
4393,
6444,
5401,
8323,
9209,
220,
284,
220,
364,
3198,
64,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
### Question
List the names and emails of customers who payed by Visa card.
| [query_database(**{'query': 'SELECT customer_email , customer_name FROM customers WHERE payment_method = 'Visa''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
|
2,853 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
18219,
63,
2456,
63,
3107,
851,
63,
31481,
38567,
12282,
345,
63,
3107,
1292,
63,
38689,
7,
508,
1350,
63,
3107,
9217,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
3107,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3956,
10592,
220,
16,
26,
4815,
2027,
851,
1393,
3107,
1292,
1393,
3107,
9217,
1393,
3107,
11703,
720,
260,
220,
16,
1393,
286,
33876,
5469,
1393,
415,
220,
9413,
17,
13,
2495,
1393,
257,
1695,
3044,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
13563,
63,
38689,
7,
1490,
1350,
63,
9103,
63,
38689,
7,
1135,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
310,
2686,
13563,
1393,
257,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
720,
260,
220,
16,
1393,
20275,
6069,
445,
6347,
1789,
4282,
21652,
220,
15805,
1393,
83705,
81,
8078,
1393,
260,
220,
15828,
1393,
1835,
38379,
1393,
262,
7427,
2355,
6343,
23421,
14700,
1595,
45945,
63,
2456,
63,
11296,
851,
63,
31481,
38567,
12282,
345,
63,
14073,
9209,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
11296,
1292,
63,
38689,
7,
1490,
1350,
63,
11296,
22942,
63,
38689,
7,
1490,
1350,
63,
11296,
9351,
63,
38689,
7,
1490,
1350,
63,
1045,
890,
762,
373,
29940,
63,
40462,
45718,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6444,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
14073,
9209,
1393,
11296,
1292,
1393,
415,
6130,
22942,
1393,
996,
6130,
9351,
1393,
1045,
890,
762,
373,
29940,
720,
692,
220,
16,
1393,
692,
44434,
1393,
262,
14662,
5867,
569,
1393,
16,
12,
18781,
12,
17735,
12,
22507,
24,
87,
21600,
2137,
1393,
939,
5676,
7911,
1774,
36587,
5181,
1393,
220,
679,
16,
12,
2371,
12,
914,
220,
1313,
25,
508,
25,
1758,
2355,
6343,
23421,
14700,
1595,
31504,
62,
25942,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
67,
4894,
29051,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
67,
4894,
29051,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
38229,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
67,
4894,
29051,
851,
720,
2342,
220,
16,
1393,
310,
220,
717,
2355,
6343,
23421,
14700,
1595,
31504,
54367,
45117,
82,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
8028,
30722,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
3107,
851,
720,
2342,
220,
20,
1393,
260,
220,
18,
2355,
6343,
23421,
14700,
1595,
29223,
62,
25942,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
1382,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
12210,
8028,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
38229,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
1382,
4878,
4229,
1393,
23108,
8028,
851,
1393,
220,
5150,
8028,
4257,
720,
1078,
220,
16,
1393,
692,
13346,
1393,
2342,
220,
23,
1393,
679,
23,
12,
2839,
12,
2437,
220,
1419,
25,
1627,
25,
777,
2355,
6343,
23421,
14700,
1595,
29223,
54367,
45117,
82,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
8028,
30722,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
3107,
851,
720,
1078,
220,
17,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
1595,
13084,
22056,
44357,
63,
2456,
63,
11296,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
5102,
1857,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
1045,
2401,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
11296,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
2907,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
60571,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
5102,
851,
1393,
692,
2457,
5791,
1393,
5102,
1857,
1393,
310,
2457,
2401,
720,
692,
220,
20,
1393,
260,
220,
21,
1393,
679,
21,
12,
2545,
12,
2705,
220,
777,
25,
1419,
25,
2790,
1393,
996,
4783,
1393,
679,
23,
12,
2437,
12,
914,
220,
868,
25,
1958,
25,
2970,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
5612,
63,
2456,
63,
9143,
851,
63,
31481,
38567,
12282,
345,
63,
9143,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
29209,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
65414,
10592,
220,
16,
26,
4815,
6149,
851,
1393,
9143,
1292,
1393,
9898,
1023,
29209,
13563,
720,
996,
220,
16,
1393,
33450,
12989,
12604,
1393,
8953,
6365,
13944,
4858,
80270,
198,
7229,
32103,
18295,
11,
39544,
220,
22424,
2495,
12,
14148,
15,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
2182,
2406,
56299,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
9143,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
1292,
63,
38689,
7,
1135,
1350,
34123,
6399,
12282,
29754,
2588,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
9143,
851,
63,
883,
79756,
1595,
39221,
2632,
5612,
63,
5931,
9143,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
29209,
46132,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
9143,
851,
1393,
2588,
6886,
851,
1393,
3813,
1292,
720,
256,
220,
1544,
4409,
28567,
1393,
415,
220,
806,
1393,
1733,
220,
20,
1393,
43,
28447,
648,
7813,
299,
35322,
2355,
6343,
23421,
14700,
1595,
1305,
15954,
63,
2456,
63,
99418,
851,
63,
31481,
38567,
12282,
345,
63,
99418,
62,
94306,
5617,
63,
38689,
7,
508,
1350,
63,
99418,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
27861,
10592,
220,
16,
26,
4815,
11092,
851,
1393,
99418,
62,
94306,
5617,
1393,
99418,
13563,
720,
996,
220,
16,
1393,
2342,
220,
23864,
605,
1393,
286,
64104,
64,
2355,
6343,
23421,
14700,
1595,
55352,
63,
2456,
63,
13243,
851,
63,
31481,
38567,
12282,
345,
63,
13243,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
13243,
1292,
63,
38689,
7,
1490,
1350,
63,
13243,
22942,
63,
38689,
7,
1490,
1350,
34123,
6399,
12282,
29754,
13243,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8420,
10592,
220,
16,
26,
4815,
9548,
851,
1393,
13243,
6886,
851,
1393,
13243,
1292,
1393,
13243,
22942,
720,
692,
220,
16,
1393,
1733,
220,
19,
1393,
286,
735,
47383,
1393,
220,
220,
23929,
12,
13655,
12,
12171,
16,
2355,
6343,
23421,
14700,
1595,
4531,
1586,
301,
1553,
552,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12804,
52881,
851,
63,
31481,
4276,
1808,
345,
63,
99418,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
99418,
851,
63,
883,
79756,
1595,
1305,
15954,
63,
5931,
99418,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
2907,
34123,
6399,
12282,
29754,
2588,
4229,
63,
883,
79756,
1595,
39221,
2632,
2182,
2406,
56299,
63,
5931,
2588,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12804,
52881,
851,
63,
883,
79756,
1595,
55352,
63,
5931,
13243,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2015,
18519,
1553,
552,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
12210,
8028,
851,
1393,
33490,
4878,
4229,
1393,
12804,
52881,
851,
1393,
99418,
851,
1393,
415,
9889,
4257,
720,
256,
220,
1544,
4409,
28567,
1393,
1835,
220,
806,
1393,
2342,
32082,
1393,
338,
220,
21,
1393,
415,
220,
806,
1393,
679,
23,
12,
2839,
12,
1691,
220,
410,
25,
3226,
25,
1313,
2355,
6343,
14711,
16225,
198,
10086,
279,
836,
315,
279,
1176,
220,
20,
6444,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
6130,
1292,
4393,
40689,
15888,
7866,
2457,
890,
762,
373,
29940,
10592,
220,
20,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
6130,
1292,
4393,
40689,
15888,
7866,
2457,
890,
762,
373,
29940,
10592,
220,
20,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
### Question
Find the name of the first 5 customers.
| [query_database(**{'query': 'SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
|
2,857 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
18219,
63,
2456,
63,
3107,
851,
63,
31481,
38567,
12282,
345,
63,
3107,
1292,
63,
38689,
7,
508,
1350,
63,
3107,
9217,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
3107,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3956,
10592,
220,
16,
26,
4815,
2027,
851,
1393,
3107,
1292,
1393,
3107,
9217,
1393,
3107,
11703,
720,
260,
220,
16,
1393,
286,
33876,
5469,
1393,
415,
220,
9413,
17,
13,
2495,
1393,
257,
1695,
3044,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
13563,
63,
38689,
7,
1490,
1350,
63,
9103,
63,
38689,
7,
1135,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
310,
2686,
13563,
1393,
257,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
720,
260,
220,
16,
1393,
20275,
6069,
445,
6347,
1789,
4282,
21652,
220,
15805,
1393,
83705,
81,
8078,
1393,
260,
220,
15828,
1393,
1835,
38379,
1393,
262,
7427,
2355,
6343,
23421,
14700,
1595,
45945,
63,
2456,
63,
11296,
851,
63,
31481,
38567,
12282,
345,
63,
14073,
9209,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
11296,
1292,
63,
38689,
7,
1490,
1350,
63,
11296,
22942,
63,
38689,
7,
1490,
1350,
63,
11296,
9351,
63,
38689,
7,
1490,
1350,
63,
1045,
890,
762,
373,
29940,
63,
40462,
45718,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6444,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
14073,
9209,
1393,
11296,
1292,
1393,
415,
6130,
22942,
1393,
996,
6130,
9351,
1393,
1045,
890,
762,
373,
29940,
720,
692,
220,
16,
1393,
692,
44434,
1393,
262,
14662,
5867,
569,
1393,
16,
12,
18781,
12,
17735,
12,
22507,
24,
87,
21600,
2137,
1393,
939,
5676,
7911,
1774,
36587,
5181,
1393,
220,
679,
16,
12,
2371,
12,
914,
220,
1313,
25,
508,
25,
1758,
2355,
6343,
23421,
14700,
1595,
31504,
62,
25942,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
67,
4894,
29051,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
67,
4894,
29051,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
38229,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
67,
4894,
29051,
851,
720,
2342,
220,
16,
1393,
310,
220,
717,
2355,
6343,
23421,
14700,
1595,
31504,
54367,
45117,
82,
63,
2456,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5912,
8028,
30722,
10592,
220,
16,
26,
4815,
5912,
8028,
851,
1393,
3107,
851,
720,
2342,
220,
20,
1393,
260,
220,
18,
2355,
6343,
23421,
14700,
1595,
29223,
62,
25942,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
38567,
12282,
345,
63,
1382,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
23108,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
12210,
8028,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
23108,
8028,
851,
63,
883,
79756,
1595,
31504,
62,
25942,
63,
5931,
23108,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
38229,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
1382,
4878,
4229,
1393,
23108,
8028,
851,
1393,
220,
5150,
8028,
4257,
720,
1078,
220,
16,
1393,
692,
13346,
1393,
2342,
220,
23,
1393,
679,
23,
12,
2839,
12,
2437,
220,
1419,
25,
1627,
25,
777,
2355,
6343,
23421,
14700,
1595,
29223,
54367,
45117,
82,
63,
2456,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
3107,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
3107,
851,
63,
883,
79756,
1595,
18219,
63,
5931,
3107,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5150,
8028,
30722,
10592,
220,
16,
26,
4815,
5150,
8028,
851,
1393,
3107,
851,
720,
1078,
220,
17,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
1595,
13084,
22056,
44357,
63,
2456,
63,
11296,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
5102,
1857,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
1045,
2401,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
11296,
851,
63,
883,
79756,
1595,
45945,
63,
5931,
11296,
851,
63,
2907,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
60571,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
5102,
851,
1393,
692,
2457,
5791,
1393,
5102,
1857,
1393,
310,
2457,
2401,
720,
692,
220,
20,
1393,
260,
220,
21,
1393,
679,
21,
12,
2545,
12,
2705,
220,
777,
25,
1419,
25,
2790,
1393,
996,
4783,
1393,
679,
23,
12,
2437,
12,
914,
220,
868,
25,
1958,
25,
2970,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
5612,
63,
2456,
63,
9143,
851,
63,
31481,
38567,
12282,
345,
63,
9143,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
29209,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
65414,
10592,
220,
16,
26,
4815,
6149,
851,
1393,
9143,
1292,
1393,
9898,
1023,
29209,
13563,
720,
996,
220,
16,
1393,
33450,
12989,
12604,
1393,
8953,
6365,
13944,
4858,
80270,
198,
7229,
32103,
18295,
11,
39544,
220,
22424,
2495,
12,
14148,
15,
2355,
6343,
23421,
14700,
1595,
39221,
2632,
2182,
2406,
56299,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
9143,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
2588,
1292,
63,
38689,
7,
1135,
1350,
34123,
6399,
12282,
29754,
2588,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
9143,
851,
63,
883,
79756,
1595,
39221,
2632,
5612,
63,
5931,
9143,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9889,
29209,
46132,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
9143,
851,
1393,
2588,
6886,
851,
1393,
3813,
1292,
720,
256,
220,
1544,
4409,
28567,
1393,
415,
220,
806,
1393,
1733,
220,
20,
1393,
43,
28447,
648,
7813,
299,
35322,
2355,
6343,
23421,
14700,
1595,
1305,
15954,
63,
2456,
63,
99418,
851,
63,
31481,
38567,
12282,
345,
63,
99418,
62,
94306,
5617,
63,
38689,
7,
508,
1350,
63,
99418,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
27861,
10592,
220,
16,
26,
4815,
11092,
851,
1393,
99418,
62,
94306,
5617,
1393,
99418,
13563,
720,
996,
220,
16,
1393,
2342,
220,
23864,
605,
1393,
286,
64104,
64,
2355,
6343,
23421,
14700,
1595,
55352,
63,
2456,
63,
13243,
851,
63,
31481,
38567,
12282,
345,
63,
13243,
6886,
851,
63,
31481,
4276,
1808,
345,
63,
13243,
1292,
63,
38689,
7,
1490,
1350,
63,
13243,
22942,
63,
38689,
7,
1490,
1350,
34123,
6399,
12282,
29754,
13243,
6886,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8420,
10592,
220,
16,
26,
4815,
9548,
851,
1393,
13243,
6886,
851,
1393,
13243,
1292,
1393,
13243,
22942,
720,
692,
220,
16,
1393,
1733,
220,
19,
1393,
286,
735,
47383,
1393,
220,
220,
23929,
12,
13655,
12,
12171,
16,
2355,
6343,
23421,
14700,
1595,
4531,
1586,
301,
1553,
552,
63,
2456,
63,
2588,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12210,
8028,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4878,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12804,
52881,
851,
63,
31481,
4276,
1808,
345,
63,
99418,
851,
63,
31481,
4276,
1808,
345,
63,
33490,
4257,
63,
40462,
45718,
345,
34123,
6399,
12282,
29754,
99418,
851,
63,
883,
79756,
1595,
1305,
15954,
63,
5931,
99418,
851,
63,
2907,
34123,
6399,
12282,
29754,
12210,
8028,
851,
63,
883,
79756,
1595,
29223,
62,
25942,
63,
5931,
12210,
8028,
851,
63,
2907,
34123,
6399,
12282,
29754,
2588,
4229,
63,
883,
79756,
1595,
39221,
2632,
2182,
2406,
56299,
63,
5931,
2588,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12804,
52881,
851,
63,
883,
79756,
1595,
55352,
63,
5931,
13243,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2015,
18519,
1553,
552,
10592,
220,
16,
26,
4815,
3813,
4229,
1393,
12210,
8028,
851,
1393,
33490,
4878,
4229,
1393,
12804,
52881,
851,
1393,
99418,
851,
1393,
415,
9889,
4257,
720,
256,
220,
1544,
4409,
28567,
1393,
1835,
220,
806,
1393,
2342,
32082,
1393,
338,
220,
21,
1393,
415,
220,
806,
1393,
679,
23,
12,
2839,
12,
1691,
220,
410,
25,
3226,
25,
1313,
2355,
6343,
14711,
16225,
198,
861,
279,
1614,
5144,
323,
279,
1396,
315,
6444,
5496,
304,
1855,
1614,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
17,
3551,
98216,
3259,
88,
1174,
220,
1797,
29771,
4393,
6130,
60571,
5871,
259,
16,
13369,
14564,
5871,
259,
17,
6328,
259,
16,
14111,
851,
220,
284,
220,
259,
17,
14111,
851,
27968,
7866,
259,
17,
3551,
98216,
3259,
88,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
17,
3551,
98216,
3259,
88,
1174,
220,
1797,
29771,
4393,
6130,
60571,
5871,
259,
16,
13369,
14564,
5871,
259,
17,
6328,
259,
16,
14111,
851,
220,
284,
220,
259,
17,
14111,
851,
27968,
7866,
259,
17,
3551,
98216,
3259,
88,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
### Question
List the state names and the number of customers living in each state.
| [query_database(**{'query': 'SELECT t2.state_province_county , count(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Products` (
`product_id` INTEGER PRIMARY KEY,
`product_name` VARCHAR(20),
`product_price` DECIMAL(19,4),
`product_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM products LIMIT 1;
product_id ||product_name ||product_price ||product_description
1 || dvds || 1322.78 || good condition
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`address_details` VARCHAR(80),
`city` VARCHAR(50),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || address_details || city ||zip_postcode ||state_province_county ||country
1 ||92283 Lora Forges Suite 322 ||Mohrville || 271 || Nebraska || USA
*/
CREATE TABLE `Customers` (
`customer_id` INTEGER PRIMARY KEY,
`payment_method` VARCHAR(10) NOT NULL,
`customer_name` VARCHAR(80),
`customer_phone` VARCHAR(80),
`customer_email` VARCHAR(80),
`date_became_customer` DATETIME
)
/*
1 example row:
SELECT * FROM customers LIMIT 1;
customer_id ||payment_method ||customer_name || customer_phone || customer_email ||date_became_customer
1 || Visa || Ron Emard ||1-382-503-5179x53639 ||[email protected] || 2011-04-25 22:20:35
*/
CREATE TABLE `Regular_Orders` (
`regular_order_id` INTEGER PRIMARY KEY,
`distributer_id` INTEGER NOT NULL,
FOREIGN KEY (`distributer_id` ) REFERENCES `Customers`(`customer_id` )
)
/*
1 example row:
SELECT * FROM regular_orders LIMIT 1;
regular_order_id ||distributer_id
1 || 12
*/
CREATE TABLE `Regular_Order_Products` (
`regular_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM regular_order_products LIMIT 1;
regular_order_id ||product_id
5 || 3
*/
CREATE TABLE `Actual_Orders` (
`actual_order_id` INTEGER PRIMARY KEY,
`order_status_code` VARCHAR(10) NOT NULL,
`regular_order_id` INTEGER NOT NULL,
`actual_order_date` DATETIME,
FOREIGN KEY (`regular_order_id` ) REFERENCES `Regular_Orders`(`regular_order_id` )
)
/*
1 example row:
SELECT * FROM actual_orders LIMIT 1;
actual_order_id ||order_status_code ||regular_order_id || actual_order_date
1 || Success || 8 ||2018-03-02 23:26:19
*/
CREATE TABLE `Actual_Order_Products` (
`actual_order_id` INTEGER NOT NULL,
`product_id` INTEGER NOT NULL,
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` )
)
/*
1 example row:
SELECT * FROM actual_order_products LIMIT 1;
actual_order_id ||product_id
2 || 1
*/
CREATE TABLE `Customer_Addresses` (
`customer_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_from` DATETIME NOT NULL,
`address_type` VARCHAR(10) NOT NULL,
`date_to` DATETIME,
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` ),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM customer_addresses LIMIT 1;
customer_id ||address_id || date_from ||address_type || date_to
5 || 6 ||2016-09-06 19:23:46 || House ||2018-02-25 15:34:58
*/
CREATE TABLE `Delivery_Routes` (
`route_id` INTEGER PRIMARY KEY,
`route_name` VARCHAR(50),
`other_route_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM delivery_routes LIMIT 1;
route_id ||route_name || other_route_details
1 ||Torphy Ltd ||16893 Wilderman Terrace
Port Lucasburgh, ND 55978-5550
*/
CREATE TABLE `Delivery_Route_Locations` (
`location_code` VARCHAR(10) PRIMARY KEY,
`route_id` INTEGER NOT NULL,
`location_address_id` INTEGER NOT NULL,
`location_name` VARCHAR(50),
FOREIGN KEY (`location_address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`route_id` ) REFERENCES `Delivery_Routes`(`route_id` )
)
/*
1 example row:
SELECT * FROM delivery_route_locations LIMIT 1;
location_code ||route_id ||location_address_id || location_name
27 City Rd || 11 || 5 ||Labadie-Crooks
*/
CREATE TABLE `Trucks` (
`truck_id` INTEGER PRIMARY KEY,
`truck_licence_number` VARCHAR(20),
`truck_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM trucks LIMIT 1;
truck_id ||truck_licence_number ||truck_details
1 || 58110 || Frida
*/
CREATE TABLE `Employees` (
`employee_id` INTEGER PRIMARY KEY,
`employee_address_id` INTEGER NOT NULL,
`employee_name` VARCHAR(80),
`employee_phone` VARCHAR(80),
FOREIGN KEY (`employee_address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM employees LIMIT 1;
employee_id ||employee_address_id ||employee_name ||employee_phone
1 || 4 || Kacie || 716-650-2081
*/
CREATE TABLE `Order_Deliveries` (
`location_code` VARCHAR(10) NOT NULL,
`actual_order_id` INTEGER NOT NULL,
`delivery_status_code` VARCHAR(10) NOT NULL,
`driver_employee_id` INTEGER NOT NULL,
`truck_id` INTEGER NOT NULL,
`delivery_date` DATETIME,
FOREIGN KEY (`truck_id` ) REFERENCES `Trucks`(`truck_id` ),
FOREIGN KEY (`actual_order_id` ) REFERENCES `Actual_Orders`(`actual_order_id` ),
FOREIGN KEY (`location_code` ) REFERENCES `Delivery_Route_Locations`(`location_code` ),
FOREIGN KEY (`driver_employee_id` ) REFERENCES `Employees`(`employee_id` )
)
/*
1 example row:
SELECT * FROM order_deliveries LIMIT 1;
location_code ||actual_order_id ||delivery_status_code ||driver_employee_id ||truck_id || delivery_date
27 City Rd || 11 || Ready || 6 || 11 ||2018-03-21 00:57:22
*/
|
2,861 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
2568,
279,
1396,
315,
14673,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
1798,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
1798,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Count the number of institutions.
| [query_database(**{'query': 'SELECT count(*) FROM inst'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,865 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
15671,
315,
682,
279,
16064,
5439,
555,
330,
76665,
29479,
47620,
1,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
18,
6195,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
18,
6195,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
220,
259,
16,
92873,
220,
284,
220,
330,
76665,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
38,
581,
47620,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Find the titles of all the papers written by "Jeremy Gibbons"
| [query_database(**{'query': 'SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Jeremy" AND t1.lname = "Gibbons"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,869 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
4438,
1690,
16064,
527,
330,
1688,
82,
38174,
8840,
13915,
1,
279,
3229,
315,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
220,
259,
16,
92873,
220,
284,
220,
330,
1688,
82,
38174,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
12174,
13915,
21230,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
220,
259,
16,
92873,
220,
284,
220,
330,
1688,
82,
38174,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
12174,
13915,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
How many papers are "Atsushi Ohori" the author of?
| [query_database(**{'query': 'SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Atsushi" AND t1.lname = "Ohori"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,873 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
836,
315,
279,
15244,
279,
3229,
330,
42,
51843,
86238,
549,
12052,
1,
17623,
311,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
259,
18,
2710,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
1798,
5871,
259,
18,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
18,
28300,
307,
5401,
259,
16,
92873,
220,
284,
220,
330,
42,
51843,
86238,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
52,
12052,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
259,
18,
2710,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
1798,
5871,
259,
18,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
18,
28300,
307,
5401,
259,
16,
92873,
220,
284,
220,
330,
42,
51843,
86238,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
52,
12052,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
What is the name of the institution the author "Katsuhiro Ueno" belongs to?
| [query_database(**{'query': 'SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,877 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
1176,
5144,
323,
1566,
5144,
315,
279,
12283,
6832,
15244,
53891,
374,
330,
14783,
3343,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
259,
16,
92873,
1174,
220,
259,
16,
929,
609,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
1798,
5871,
259,
18,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
18,
28300,
307,
5401,
259,
18,
2710,
220,
284,
220,
330,
14783,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
259,
16,
92873,
1174,
220,
259,
16,
929,
609,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
1798,
5871,
259,
18,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
18,
28300,
307,
5401,
259,
18,
2710,
220,
284,
220,
330,
14783,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Find the first names and last names of the authors whose institution affiliation is "Google".
| [query_database(**{'query': 'SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,881 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
1176,
323,
1566,
836,
315,
279,
3229,
889,
4756,
279,
5684,
25891,
330,
678,
1752,
11,
393,
16864,
44969,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
92873,
1174,
220,
259,
16,
929,
609,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
259,
18,
6195,
220,
284,
220,
330,
678,
1752,
1174,
220,
393,
16864,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
92873,
1174,
220,
259,
16,
929,
609,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
259,
18,
6195,
220,
284,
220,
330,
678,
1752,
1174,
220,
393,
16864,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
What are the first and last name of the author who published the paper titled "Nameless, Painless"?
| [query_database(**{'query': 'SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,885 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
23956,
16064,
1051,
5439,
555,
12283,
505,
279,
15244,
330,
14783,
44969,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
259,
16,
6195,
4393,
16064,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
78438,
307,
220,
284,
220,
259,
17,
78438,
307,
13369,
1798,
5871,
259,
18,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
18,
28300,
307,
5401,
259,
18,
2710,
220,
284,
220,
330,
14783,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
259,
16,
6195,
4393,
16064,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
78438,
307,
220,
284,
220,
259,
17,
78438,
307,
13369,
1798,
5871,
259,
18,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
18,
28300,
307,
5401,
259,
18,
2710,
220,
284,
220,
330,
14783,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Which papers were written by authors from the institution "Google"?
| [query_database(**{'query': 'SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,890 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
16064,
902,
617,
330,
46,
3817,
1443,
1986,
1,
439,
459,
3229,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
18,
6195,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
259,
16,
92873,
220,
284,
220,
330,
46,
3817,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
2059,
1986,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
18,
6195,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
259,
16,
92873,
220,
284,
220,
330,
46,
3817,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
2059,
1986,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Find the papers which have "Olin Shivers" as an author.
| [query_database(**{'query': 'SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,894 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
23956,
5684,
374,
4756,
304,
459,
15244,
304,
330,
25342,
1,
323,
617,
330,
51,
37190,
1,
439,
1202,
2132,
3229,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
18,
6195,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
13369,
1798,
5871,
259,
19,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
19,
28300,
307,
5401,
259,
19,
34424,
220,
284,
220,
330,
25342,
1,
3651,
259,
17,
9144,
1382,
220,
284,
220,
220,
17,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
51,
37190,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
18,
6195,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
13369,
1798,
5871,
259,
19,
6328,
259,
17,
28300,
307,
220,
284,
220,
259,
19,
28300,
307,
5401,
259,
19,
34424,
220,
284,
220,
330,
25342,
1,
3651,
259,
17,
9144,
1382,
220,
284,
220,
220,
17,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
51,
37190,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Which paper is published in an institution in "USA" and have "Turon" as its second author?
| [query_database(**{'query': 'SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "USA" AND t2.authorder = 2 AND t1.lname = "Turon"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,898 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
1566,
836,
315,
279,
3229,
430,
706,
4756,
279,
1455,
16064,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
929,
609,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
27968,
7866,
259,
16,
92873,
1174,
220,
259,
16,
929,
609,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
929,
609,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
27968,
7866,
259,
16,
92873,
1174,
220,
259,
16,
929,
609,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
What is the last name of the author that has published the most papers?
| [query_database(**{'query': 'SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,901 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
3224,
430,
279,
1455,
16064,
527,
37506,
449,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
34424,
4393,
1798,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
28300,
307,
220,
284,
220,
259,
17,
28300,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
27968,
7866,
259,
16,
34424,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
34424,
4393,
1798,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
28300,
307,
220,
284,
220,
259,
17,
28300,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
27968,
7866,
259,
16,
34424,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Find the country that the most papers are affiliated with.
| [query_database(**{'query': 'SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,906 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
23956,
5684,
596,
2316,
5727,
279,
3492,
330,
6116,
44969,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
16064,
5401,
2316,
21170,
6090,
6116,
16171,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
16064,
5401,
2316,
21170,
6090,
6116,
16171,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Which paper's title contains the word "Database"?
| [query_database(**{'query': 'SELECT title FROM papers WHERE title LIKE "%Database%"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,908 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
1176,
5144,
315,
682,
279,
12283,
889,
617,
5439,
264,
5684,
449,
2316,
8649,
279,
3492,
330,
72371,
3343,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
92873,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
259,
18,
6195,
21170,
6090,
72371,
16171,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
92873,
4393,
12283,
5871,
259,
16,
13369,
3229,
5383,
5871,
259,
17,
6328,
259,
16,
9144,
307,
220,
284,
220,
259,
17,
9144,
307,
13369,
16064,
5871,
259,
18,
6328,
259,
17,
78438,
307,
220,
284,
220,
259,
18,
78438,
307,
5401,
259,
18,
6195,
21170,
6090,
72371,
16171,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Find the first names of all the authors who have written a paper with title containing the word "Functional".
| [query_database(**{'query': 'SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Functional%"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,913 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
23956,
5684,
706,
279,
1455,
12283,
30,
21335,
757,
279,
5684,
2316,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
17,
6195,
4393,
3229,
5383,
5871,
259,
16,
13369,
16064,
5871,
259,
17,
6328,
259,
16,
78438,
307,
220,
284,
220,
259,
17,
78438,
307,
5401,
259,
16,
9144,
1382,
220,
284,
220,
320,
4963,
1973,
28535,
1382,
8,
4393,
3229,
5383,
22367,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
17,
6195,
4393,
3229,
5383,
5871,
259,
16,
13369,
16064,
5871,
259,
17,
6328,
259,
16,
78438,
307,
220,
284,
220,
259,
17,
78438,
307,
5401,
259,
16,
9144,
1382,
220,
284,
220,
320,
4963,
1973,
28535,
1382,
8,
4393,
3229,
5383,
22367,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Which paper has the most authors? Give me the paper title.
| [query_database(**{'query': 'SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship)'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,918 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
1176,
5144,
315,
682,
279,
12283,
11713,
304,
84398,
2015,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
23364,
4393,
12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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
23364,
4393,
12283,
15888,
7866,
23364,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Find the first names of all the authors ordered in alphabetical order.
| [query_database(**{'query': 'SELECT fname FROM authors ORDER BY fname'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,921 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6112,
2456,
220,
1798,
926,
31481,
345,
220,
836,
16139,
345,
220,
3224,
16139,
11,
1198,
279,
2162,
3224,
315,
279,
15244,
320,
576,
374,
14224,
459,
88398,
1646,
340,
220,
38567,
12282,
320,
6442,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1798,
10592,
220,
16,
26,
4815,
1798,
926,
1393,
394,
836,
1393,
11389,
720,
220,
220,
1041,
15,
1393,
31272,
315,
26275,
1393,
257,
6560,
2355,
6343,
23421,
14700,
25095,
2456,
220,
4259,
926,
31481,
345,
220,
77239,
16139,
345,
220,
23364,
16139,
345,
220,
38567,
12282,
320,
3322,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12283,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
220,
77239,
1393,
23364,
720,
262,
220,
1135,
1393,
38,
581,
47620,
1393,
76665,
2355,
6343,
23421,
14700,
45231,
2456,
220,
5684,
926,
31481,
345,
220,
2316,
16139,
345,
220,
38567,
12282,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
16064,
10592,
220,
16,
26,
4815,
5684,
926,
1393,
10724,
2316,
720,
262,
220,
1049,
1393,
10156,
656,
433,
25,
9170,
3206,
37314,
11964,
1697,
27857,
287,
2355,
6343,
23421,
14700,
7030,
5383,
2456,
220,
4259,
926,
31481,
345,
220,
1798,
926,
31481,
345,
220,
5684,
926,
31481,
345,
220,
4259,
4531,
31481,
345,
220,
38567,
12282,
320,
3322,
926,
11,
1798,
926,
11,
5684,
926,
1350,
220,
82456,
12282,
320,
3322,
926,
8,
79756,
25095,
320,
3322,
926,
1350,
220,
82456,
12282,
320,
6442,
926,
8,
79756,
6112,
320,
6442,
926,
1350,
220,
82456,
12282,
320,
19716,
926,
8,
79756,
45231,
320,
19716,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3229,
5383,
10592,
220,
16,
26,
4815,
4259,
926,
1393,
6442,
926,
1393,
19716,
926,
1393,
3322,
4531,
720,
262,
220,
1135,
1393,
220,
220,
1041,
15,
1393,
262,
220,
1049,
1393,
286,
220,
16,
2355,
6343,
14711,
16225,
198,
36227,
757,
264,
1160,
315,
682,
279,
1566,
5144,
315,
12283,
10839,
304,
84398,
2015,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
77239,
4393,
12283,
15888,
7866,
77239,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
77239,
4393,
12283,
15888,
7866,
77239,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
### Question
Give me a list of all the last names of authors sorted in alphabetical order
| [query_database(**{'query': 'SELECT lname FROM authors ORDER BY lname'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE Inst (
instID INTEGER,
name TEXT,
country TEXT, -- the home country of the institution (this is obviously an impoverished model)
PRIMARY KEY (instID)
)
/*
1 example row:
SELECT * FROM inst LIMIT 1;
instID || name ||country
1000 ||University of Oxford || UK
*/
CREATE TABLE Authors (
authID INTEGER,
lname TEXT,
fname TEXT,
PRIMARY KEY (authID)
)
/*
1 example row:
SELECT * FROM authors LIMIT 1;
authID || lname || fname
50 ||Gibbons ||Jeremy
*/
CREATE TABLE Papers (
paperID INTEGER,
title TEXT,
PRIMARY KEY (paperID)
)
/*
1 example row:
SELECT * FROM papers LIMIT 1;
paperID || title
200 ||Just do it: Simple Monadic Equational Reasoning
*/
CREATE TABLE Authorship (
authID INTEGER,
instID INTEGER,
paperID INTEGER,
authOrder INTEGER,
PRIMARY KEY (authID, instID, paperID),
FOREIGN KEY (authID) REFERENCES Authors (authID),
FOREIGN KEY (instID) REFERENCES Inst (instID),
FOREIGN KEY (paperID) REFERENCES Papers (paperID)
)
/*
1 example row:
SELECT * FROM authorship LIMIT 1;
authID ||instID ||paperID ||authOrder
50 || 1000 || 200 || 1
*/
|
2,925 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
2568,
279,
1396,
315,
2204,
1566,
5144,
20142,
617,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1566,
1292,
8,
4393,
12360,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1566,
1292,
8,
4393,
12360,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Count the number of different last names actors have.
| [query_database(**{'query': 'SELECT count(DISTINCT last_name) FROM actor'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,929 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
5715,
279,
1455,
4279,
2539,
836,
4315,
682,
20142,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1176,
1292,
1174,
220,
1566,
1292,
4393,
12360,
27968,
7866,
1176,
1292,
1174,
220,
1566,
1292,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1176,
1292,
1174,
220,
1566,
1292,
4393,
12360,
27968,
7866,
1176,
1292,
1174,
220,
1566,
1292,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Return the most common full name among all actors.
| [query_database(**{'query': 'SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,933 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
36227,
279,
4641,
323,
40854,
2082,
12435,
311,
279,
2686,
364,
6889,
16,
14569,
773,
402,
79,
8839,
68253,
4527,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
4641,
1174,
220,
40854,
4229,
4393,
2686,
5401,
2686,
220,
284,
220,
364,
6889,
16,
14569,
773,
402,
79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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
4641,
1174,
220,
40854,
4229,
4393,
2686,
5401,
2686,
220,
284,
220,
364,
6889,
16,
14569,
773,
402,
79,
8839,
68253,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Give the phone and postal code corresponding to the address '1031 Daugavpils Parkway'.
| [query_database(**{'query': 'SELECT phone , postal_code FROM address WHERE address = '1031 Daugavpils Parkway''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,938 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
23956,
4632,
374,
49959,
520,
264,
11307,
315,
220,
15,
13,
1484,
323,
706,
2753,
1109,
220,
18,
304,
279,
15808,
30,
1796,
279,
4632,
2316,
323,
887,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
1174,
220,
4632,
851,
4393,
4632,
5401,
19160,
9430,
220,
284,
220,
220,
15,
13,
1484,
30442,
937,
1182,
19638,
350,
16,
6195,
1174,
220,
350,
16,
840,
9672,
851,
4393,
4632,
5871,
350,
16,
13369,
15808,
5871,
350,
17,
6328,
350,
16,
840,
9672,
851,
220,
284,
220,
350,
17,
840,
9672,
851,
27968,
7866,
350,
16,
840,
9672,
851,
473,
84822,
1797,
29771,
220,
366,
220,
220,
18,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
1174,
220,
4632,
851,
4393,
4632,
5401,
19160,
9430,
220,
284,
220,
220,
15,
13,
1484,
30442,
937,
1182,
19638,
350,
16,
6195,
1174,
220,
350,
16,
840,
9672,
851,
4393,
4632,
5871,
350,
16,
13369,
15808,
5871,
350,
17,
6328,
350,
16,
840,
9672,
851,
220,
284,
220,
350,
17,
840,
9672,
851,
27968,
7866,
350,
16,
840,
9672,
851,
473,
84822,
1797,
29771,
220,
366,
220,
220,
18,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.
| [query_database(**{'query': 'SELECT title , film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING count(*) < 3'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,942 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
23956,
5961,
617,
520,
3325,
220,
18,
9919,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
34424,
4393,
3363,
5871,
350,
16,
13369,
3224,
5871,
350,
17,
6328,
350,
16,
34424,
851,
220,
284,
220,
350,
17,
34424,
851,
27968,
7866,
350,
17,
34424,
851,
473,
84822,
1797,
29771,
220,
2669,
220,
220,
18,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
34424,
4393,
3363,
5871,
350,
16,
13369,
3224,
5871,
350,
17,
6328,
350,
16,
34424,
851,
220,
284,
220,
350,
17,
34424,
851,
27968,
7866,
350,
17,
34424,
851,
473,
84822,
1797,
29771,
220,
2669,
220,
220,
18,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Which countries have at least 3 cities?
| [query_database(**{'query': 'SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count(*) >= 3'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,946 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
4438,
1690,
6444,
617,
459,
4642,
907,
315,
220,
16,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
6130,
5401,
4642,
284,
364,
16,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
6130,
5401,
4642,
284,
364,
16,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
How many customers have an active value of 1?
| [query_database(**{'query': 'SELECT count(*) FROM customer WHERE active = '1''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,950 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
23956,
4632,
706,
279,
1455,
1396,
315,
20142,
477,
91128,
30,
1796,
279,
4632,
836,
11,
4632,
887,
323,
4096,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
6195,
1174,
220,
350,
17,
840,
9672,
851,
1174,
220,
350,
17,
13480,
4393,
4632,
55918,
5871,
350,
16,
13369,
4632,
5871,
350,
17,
6328,
350,
16,
840,
9672,
851,
220,
284,
220,
350,
17,
840,
9672,
851,
27968,
7866,
350,
17,
840,
9672,
851,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
6195,
1174,
220,
350,
17,
840,
9672,
851,
1174,
220,
350,
17,
13480,
4393,
4632,
55918,
5871,
350,
16,
13369,
4632,
5871,
350,
17,
6328,
350,
16,
840,
9672,
851,
220,
284,
220,
350,
17,
840,
9672,
851,
27968,
7866,
350,
17,
840,
9672,
851,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Which film has the most number of actors or actresses? List the film name, film id and description.
| [query_database(**{'query': 'SELECT T2.title , T2.film_id , T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,954 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
23956,
4632,
20142,
320,
533,
44357,
8,
6476,
264,
3560,
304,
810,
1109,
220,
966,
12631,
30,
1796,
813,
477,
1077,
1176,
836,
323,
1566,
836,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
7541,
1292,
1174,
220,
350,
17,
9288,
1292,
4393,
4632,
55918,
5871,
350,
16,
13369,
12360,
5871,
350,
17,
6328,
350,
16,
42468,
851,
220,
284,
220,
350,
17,
42468,
851,
27968,
7866,
350,
17,
42468,
851,
473,
84822,
1797,
29771,
220,
871,
220,
220,
966,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
7541,
1292,
1174,
220,
350,
17,
9288,
1292,
4393,
4632,
55918,
5871,
350,
16,
13369,
12360,
5871,
350,
17,
6328,
350,
16,
42468,
851,
220,
284,
220,
350,
17,
42468,
851,
27968,
7866,
350,
17,
42468,
851,
473,
84822,
1797,
29771,
220,
871,
220,
220,
966,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.
| [query_database(**{'query': 'SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count(*) > 30'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,958 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
35089,
8,
4393,
8323,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
What is the total amount of all payments?
| [query_database(**{'query': 'SELECT sum(amount) FROM payment'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,962 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
3923,
374,
279,
17779,
836,
315,
279,
4632,
473,
1899,
8912,
12076,
12766,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
2710,
4393,
5699,
5871,
350,
16,
13369,
4632,
12110,
5871,
350,
17,
6328,
350,
16,
18898,
851,
220,
284,
220,
350,
17,
18898,
851,
13369,
4632,
5871,
350,
18,
6328,
350,
17,
840,
9672,
851,
220,
284,
220,
350,
18,
840,
9672,
851,
5401,
350,
18,
6195,
220,
284,
220,
364,
39,
1899,
8912,
12076,
12766,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
2710,
4393,
5699,
5871,
350,
16,
13369,
4632,
12110,
5871,
350,
17,
6328,
350,
16,
18898,
851,
220,
284,
220,
350,
17,
18898,
851,
13369,
4632,
5871,
350,
18,
6328,
350,
17,
840,
9672,
851,
220,
284,
220,
350,
18,
840,
9672,
851,
5401,
350,
18,
6195,
220,
284,
220,
364,
39,
1899,
8912,
12076,
12766,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
What is the genre name of the film HUNGER ROOF?
| [query_database(**{'query': 'SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,966 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
23956,
4632,
706,
279,
1455,
11236,
304,
279,
15808,
30,
1796,
2225,
2316,
323,
887,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
6195,
1174,
220,
350,
16,
840,
9672,
851,
4393,
4632,
5871,
350,
16,
13369,
15808,
5871,
350,
17,
6328,
350,
16,
840,
9672,
851,
220,
284,
220,
350,
17,
840,
9672,
851,
27968,
7866,
350,
16,
840,
9672,
851,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
6195,
1174,
220,
350,
16,
840,
9672,
851,
4393,
4632,
5871,
350,
16,
13369,
15808,
5871,
350,
17,
6328,
350,
16,
840,
9672,
851,
220,
284,
220,
350,
17,
840,
9672,
851,
27968,
7866,
350,
16,
840,
9672,
851,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Which film has the most copies in the inventory? List both title and id.
| [query_database(**{'query': 'SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,970 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
4438,
1690,
15823,
527,
304,
1521,
12631,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
4221,
851,
8,
4393,
4632,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
4221,
851,
8,
4393,
4632,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
How many languages are in these films?
| [query_database(**{'query': 'SELECT count(DISTINCT language_id) FROM film'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,973 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
5715,
279,
15671,
315,
904,
9698,
449,
459,
432,
10959,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
4632,
5401,
10959,
220,
284,
220,
364,
49,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
4632,
5401,
10959,
220,
284,
220,
364,
49,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Return the titles of any movies with an R rating.
| [query_database(**{'query': 'SELECT title FROM film WHERE rating = 'R''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,977 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
36227,
279,
2539,
836,
323,
5687,
887,
315,
279,
5687,
889,
706,
18073,
279,
2478,
478,
14507,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
7541,
1292,
1174,
220,
350,
16,
9288,
1292,
1174,
220,
350,
16,
92966,
851,
4393,
5687,
5871,
350,
16,
13369,
8323,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
92966,
851,
27968,
7866,
350,
16,
92966,
851,
15888,
7866,
1797,
29771,
20382,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
7541,
1292,
1174,
220,
350,
16,
9288,
1292,
1174,
220,
350,
16,
92966,
851,
4393,
5687,
5871,
350,
16,
13369,
8323,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
92966,
851,
27968,
7866,
350,
16,
92966,
851,
15888,
7866,
1797,
29771,
20382,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Give the full name and staff id of the staff who has handled the fewest payments.
| [query_database(**{'query': 'SELECT T1.first_name , T1.last_name , T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,982 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
4438,
1690,
13124,
315,
2204,
18594,
527,
10212,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
10959,
8,
4393,
4632,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
10959,
8,
4393,
4632,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
How many kinds of different ratings are listed?
| [query_database(**{'query': 'SELECT count(DISTINCT rating) FROM film'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,986 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
4438,
1690,
3673,
304,
15808,
1587,
3637,
220,
16,
617,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
15808,
5401,
3637,
851,
220,
284,
220,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
15808,
5401,
3637,
851,
220,
284,
220,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
How many items in inventory does store 1 have?
| [query_database(**{'query': 'SELECT count(*) FROM inventory WHERE store_id = 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,990 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
9241,
1587,
279,
6130,
449,
279,
1176,
836,
39162,
3974,
30,
1628,
1148,
374,
1077,
2613,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
14111,
1174,
220,
350,
16,
10048,
4393,
6130,
5871,
350,
16,
13369,
2686,
5871,
350,
17,
6328,
350,
17,
14111,
851,
220,
284,
220,
350,
16,
14111,
851,
5401,
350,
16,
7541,
1292,
220,
284,
220,
364,
43,
5358,
32,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
14111,
1174,
220,
350,
16,
10048,
4393,
6130,
5871,
350,
16,
13369,
2686,
5871,
350,
17,
6328,
350,
17,
14111,
851,
220,
284,
220,
350,
16,
14111,
851,
5401,
350,
16,
7541,
1292,
220,
284,
220,
364,
43,
5358,
32,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Where does the customer with the first name Linda live? And what is her email?
| [query_database(**{'query': 'SELECT T2.address , T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,994 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
3923,
374,
279,
1176,
836,
323,
279,
1566,
836,
315,
279,
6130,
889,
1903,
279,
30758,
19160,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
7541,
1292,
1174,
220,
350,
16,
9288,
1292,
4393,
6130,
5871,
350,
16,
13369,
19160,
5871,
350,
17,
6328,
350,
16,
32880,
851,
220,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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
7541,
1292,
1174,
220,
350,
16,
9288,
1292,
4393,
6130,
5871,
350,
16,
13369,
19160,
5871,
350,
17,
6328,
350,
16,
32880,
851,
220,
284,
220,
350,
17,
32880,
851,
15888,
7866,
350,
17,
1351,
406,
278,
4257,
20382,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
What is the first name and the last name of the customer who made the earliest rental?
| [query_database(**{'query': 'SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
2,998 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
23956,
3637,
706,
1455,
279,
6444,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
3637,
851,
4393,
6130,
27968,
7866,
3637,
851,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
3637,
851,
4393,
6130,
27968,
7866,
3637,
851,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Which store has most the customers?
| [query_database(**{'query': 'SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
3,002 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
12360,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12360,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
220,
393,
37420,
1623,
1777,
1393,
220,
46372,
24221,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1958,
25,
1644,
2355,
6343,
23421,
14700,
2686,
2456,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2686,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
2686,
17,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
9474,
38689,
7,
508,
8,
4276,
1808,
345,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
40854,
4229,
38689,
7,
605,
8,
12221,
1808,
345,
220,
4641,
38689,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
9103,
851,
8,
79756,
3363,
320,
9103,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2686,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
692,
2686,
1393,
5102,
17,
1393,
36491,
1393,
9103,
851,
1393,
34270,
4229,
1393,
4949,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
2618,
3092,
50,
587,
10746,
16542,
1393,
262,
2290,
1393,
33654,
1393,
262,
220,
3101,
1393,
310,
1393,
415,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
966,
2355,
6343,
23421,
14700,
5699,
2456,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
38689,
7,
914,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5699,
10592,
220,
16,
26,
4815,
5699,
851,
1393,
220,
836,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
2573,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2790,
25,
1544,
2355,
6343,
23421,
14700,
3363,
2456,
220,
3363,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3363,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
9103,
851,
1350,
220,
82456,
12282,
320,
11389,
851,
8,
79756,
3224,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3363,
10592,
220,
16,
26,
4815,
3363,
851,
1393,
1078,
3363,
1393,
11389,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
32,
4563,
4381,
320,
8921,
4563,
4381,
8,
1393,
286,
220,
4044,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
1774,
25,
914,
2355,
6343,
23421,
14700,
3224,
2456,
220,
3224,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3224,
38689,
7,
1135,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11389,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3224,
10592,
220,
16,
26,
4815,
3224,
851,
1393,
262,
3224,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
55439,
16083,
9121,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
2096,
25,
410,
2355,
6343,
23421,
14700,
6130,
2456,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
1893,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
6130,
851,
1393,
4412,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
667,
2613,
1393,
5102,
851,
1393,
3104,
1393,
286,
1893,
4257,
1393,
286,
1566,
9058,
720,
692,
220,
16,
1393,
996,
220,
16,
1393,
415,
386,
8812,
1393,
262,
14031,
4243,
1393,
49970,
78368,
4243,
61677,
587,
321,
582,
4493,
2726,
1393,
260,
220,
20,
1393,
257,
220,
16,
1393,
1049,
21,
12,
2437,
12,
975,
220,
1313,
25,
2371,
25,
1927,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2371,
25,
3226,
25,
508,
2355,
6343,
23421,
14700,
4632,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
12221,
1808,
345,
220,
4984,
14987,
52005,
12221,
1808,
345,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4113,
30121,
851,
350,
66053,
3301,
95278,
12221,
1808,
345,
220,
19160,
26532,
350,
66053,
3301,
95278,
4276,
1808,
12221,
220,
18,
345,
220,
19160,
9430,
43917,
38677,
7,
19,
11,
17,
8,
4276,
1808,
12221,
220,
19,
13,
1484,
345,
220,
3160,
50297,
3301,
95278,
12221,
1808,
345,
220,
14039,
16269,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
12221,
220,
777,
13,
1484,
345,
220,
10959,
12221,
364,
38,
756,
220,
3361,
15314,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
11789,
851,
8,
79756,
4221,
320,
11789,
851,
1350,
220,
82456,
12282,
320,
10090,
30121,
851,
8,
79756,
4221,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
1881,
2316,
1393,
5351,
3909,
4096,
1393,
23859,
14987,
1393,
11789,
851,
1393,
10090,
30121,
851,
1393,
8135,
278,
26532,
1393,
8135,
278,
9430,
1393,
4222,
1393,
84731,
16269,
1393,
22696,
1393,
394,
3361,
15314,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
1741,
33941,
19708,
78359,
3204,
32,
1539,
1393,
32,
40467,
47569,
315,
264,
57401,
380,
1628,
264,
9671,
68409,
889,
2011,
16506,
264,
30169,
304,
578,
12152,
80151,
1393,
286,
220,
1049,
21,
1393,
692,
220,
16,
1393,
394,
2290,
1393,
1078,
220,
21,
1393,
996,
220,
15,
13,
1484,
1393,
262,
220,
4218,
1393,
1881,
220,
508,
13,
1484,
1393,
262,
31144,
1393,
27130,
84283,
8324,
2701,
485,
279,
84283,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2839,
25,
2983,
2355,
6343,
23421,
14700,
4632,
55918,
2456,
220,
12360,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
5739,
851,
17514,
9672,
851,
1350,
82456,
12282,
320,
5739,
851,
8,
79756,
12360,
320,
5739,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
55918,
10592,
220,
16,
26,
4815,
12360,
851,
1393,
31255,
851,
1393,
286,
1566,
9058,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2304,
25,
2839,
2355,
6343,
23421,
14700,
4632,
12110,
2456,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5699,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
31255,
851,
11,
5699,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
1350,
220,
82456,
12282,
320,
5588,
851,
8,
79756,
5699,
320,
5588,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
12110,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
5588,
851,
1393,
286,
1566,
9058,
720,
415,
220,
16,
1393,
692,
220,
21,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2589,
25,
2545,
2355,
6343,
23421,
14700,
4632,
4424,
2456,
220,
4632,
851,
50297,
3301,
4276,
1808,
345,
220,
2316,
38689,
7,
3192,
8,
4276,
1808,
345,
220,
4096,
16139,
345,
220,
38567,
12282,
220,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4632,
4424,
10592,
220,
16,
26,
4815,
4632,
851,
1393,
2150,
1393,
4789,
33006,
6343,
23421,
14700,
15808,
2456,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
4632,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
31255,
851,
8,
79756,
4632,
320,
31255,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15808,
10592,
220,
16,
26,
4815,
15808,
851,
1393,
31255,
851,
1393,
4412,
851,
1393,
286,
1566,
9058,
720,
1881,
220,
16,
1393,
415,
220,
16,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
2304,
25,
2545,
25,
1114,
2355,
6343,
23421,
14700,
4221,
2456,
220,
4221,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
836,
24954,
7,
508,
8,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
11789,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4221,
10592,
220,
16,
26,
4815,
4221,
851,
1393,
609,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
8323,
2456,
220,
8323,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
19160,
851,
9403,
12221,
1808,
345,
220,
3392,
43917,
38677,
7,
20,
11,
17,
8,
4276,
1808,
345,
220,
8323,
4257,
40462,
45718,
4276,
1808,
345,
220,
1566,
9058,
93692,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
14073,
851,
1350,
220,
82456,
12282,
320,
8135,
278,
851,
8,
79756,
19160,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8323,
10592,
220,
16,
26,
4815,
8323,
851,
1393,
11296,
851,
1393,
28221,
851,
1393,
8135,
278,
851,
1393,
6173,
1393,
996,
8323,
4257,
1393,
286,
1566,
9058,
720,
260,
220,
16,
1393,
692,
220,
16,
1393,
996,
220,
16,
1393,
996,
220,
4767,
1393,
220,
220,
17,
13,
1484,
1393,
1049,
20,
12,
2304,
12,
914,
220,
806,
25,
966,
25,
1806,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1313,
25,
717,
25,
966,
2355,
6343,
23421,
14700,
19160,
2456,
220,
19160,
851,
9403,
4276,
1808,
345,
220,
19160,
4257,
40462,
45718,
4276,
1808,
345,
220,
15808,
851,
386,
51886,
3301,
95278,
4276,
1808,
345,
220,
6130,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
471,
4257,
40462,
45718,
12221,
1808,
345,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
320,
8135,
278,
851,
1350,
220,
82456,
12282,
320,
28221,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
32193,
851,
8,
79756,
15808,
320,
32193,
851,
1350,
220,
82456,
12282,
320,
11296,
851,
8,
79756,
6130,
320,
11296,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
19160,
10592,
220,
16,
26,
4815,
19160,
851,
1393,
286,
19160,
4257,
1393,
32193,
851,
1393,
11296,
851,
1393,
286,
471,
4257,
1393,
28221,
851,
1393,
286,
1566,
9058,
720,
286,
220,
16,
1393,
1049,
20,
12,
2304,
12,
1187,
220,
1313,
25,
4331,
25,
966,
1393,
260,
220,
18775,
1393,
286,
220,
5894,
1393,
1049,
20,
12,
2304,
12,
1627,
220,
1313,
25,
2371,
25,
966,
1393,
996,
220,
16,
1393,
1049,
21,
12,
2437,
12,
868,
220,
1691,
25,
966,
25,
4331,
2355,
6343,
23421,
14700,
5687,
2456,
220,
5687,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
1176,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
1566,
1292,
38689,
7,
1774,
8,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
6945,
426,
10911,
12221,
1808,
345,
220,
2613,
38689,
7,
1135,
8,
12221,
1808,
345,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
4642,
60493,
4276,
1808,
12221,
8378,
345,
220,
6059,
38689,
7,
845,
8,
4276,
1808,
345,
220,
3636,
38689,
7,
1272,
8,
12221,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
28221,
851,
1350,
220,
1198,
34123,
6399,
12282,
320,
4412,
851,
8,
79756,
3637,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
5102,
851,
1393,
27581,
1393,
2386,
1393,
4412,
851,
1393,
3104,
1393,
5223,
1393,
3918,
1393,
4354,
9058,
33006,
6343,
23421,
14700,
3637,
2456,
220,
3637,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
6783,
48160,
851,
350,
66053,
3301,
95278,
4276,
1808,
345,
220,
2686,
851,
50297,
3301,
95278,
4276,
1808,
345,
220,
1566,
9058,
93692,
4276,
1808,
12221,
44207,
48954,
345,
220,
38567,
12282,
220,
320,
4412,
851,
1350,
220,
82456,
12282,
320,
13600,
48160,
851,
8,
79756,
5687,
320,
28221,
851,
1350,
220,
82456,
12282,
320,
5102,
851,
8,
79756,
2686,
320,
5102,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3637,
10592,
220,
16,
26,
4815,
3637,
851,
1393,
13600,
48160,
851,
1393,
5102,
851,
1393,
4354,
9058,
33006,
6343,
14711,
16225,
198,
9241,
1587,
279,
5687,
4562,
449,
279,
1176,
836,
49064,
3974,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
14111,
4393,
5687,
5871,
350,
16,
13369,
2686,
5871,
350,
17,
6328,
350,
16,
14111,
851,
220,
284,
220,
350,
17,
14111,
851,
5401,
350,
16,
7541,
1292,
220,
284,
220,
364,
36,
78783,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
14111,
4393,
5687,
5871,
350,
16,
13369,
2686,
5871,
350,
17,
6328,
350,
16,
14111,
851,
220,
284,
220,
350,
17,
14111,
851,
5401,
350,
16,
7541,
1292,
220,
284,
220,
364,
36,
78783,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
### Question
Where does the staff member with the first name Elsa live?
| [query_database(**{'query': 'SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id)
)
/*
1 example row:
SELECT * FROM actor LIMIT 1;
actor_id ||first_name ||last_name || last_update
1 || PENELOPE || GUINESS ||2006-02-15 04:34:33
*/
CREATE TABLE address (
address_id SMALLINT UNSIGNED NOT NULL,
address VARCHAR(50) NOT NULL,
address2 VARCHAR(50) DEFAULT NULL,
district VARCHAR(20) NOT NULL,
city_id SMALLINT UNSIGNED NOT NULL,
postal_code VARCHAR(10) DEFAULT NULL,
phone VARCHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (address_id),
FOREIGN KEY (city_id) REFERENCES city (city_id)
)
/*
1 example row:
SELECT * FROM address LIMIT 1;
address_id || address ||address2 ||district ||city_id ||postal_code ||phone || last_update
1 ||47 MySakila Drive || None || Alberta || 300 || || ||2006-02-15 04:45:30
*/
CREATE TABLE category (
category_id TINYINT UNSIGNED NOT NULL,
name VARCHAR(25) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (category_id)
)
/*
1 example row:
SELECT * FROM category LIMIT 1;
category_id || name || last_update
1 ||Action ||2006-02-15 04:46:27
*/
CREATE TABLE city (
city_id SMALLINT UNSIGNED NOT NULL,
city VARCHAR(50) NOT NULL,
country_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (city_id),
FOREIGN KEY (country_id) REFERENCES country (country_id)
)
/*
1 example row:
SELECT * FROM city LIMIT 1;
city_id || city ||country_id || last_update
1 ||A Corua (La Corua) || 87 ||2006-02-15 04:45:25
*/
CREATE TABLE country (
country_id SMALLINT UNSIGNED NOT NULL,
country VARCHAR(50) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (country_id)
)
/*
1 example row:
SELECT * FROM country LIMIT 1;
country_id || country || last_update
1 ||Afghanistan ||2006-02-15 04:44:00
*/
CREATE TABLE customer (
customer_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
email VARCHAR(50) DEFAULT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
create_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (customer_id),
FOREIGN KEY (address_id) REFERENCES address (address_id),
FOREIGN KEY (store_id) REFERENCES store (store_id)
)
/*
1 example row:
SELECT * FROM customer LIMIT 1;
customer_id ||store_id ||first_name ||last_name || email ||address_id ||active || create_date || last_update
1 || 1 || MARY || SMITH ||[email protected] || 5 || 1 ||2006-02-14 22:04:36 ||2006-02-15 04:57:20
*/
CREATE TABLE film (
film_id SMALLINT UNSIGNED NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL,
release_year YEAR DEFAULT NULL,
language_id TINYINT UNSIGNED NOT NULL,
original_language_id TINYINT UNSIGNED DEFAULT NULL,
rental_duration TINYINT UNSIGNED NOT NULL DEFAULT 3,
rental_rate DECIMAL(4,2) NOT NULL DEFAULT 4.99,
length SMALLINT UNSIGNED DEFAULT NULL,
replacement_cost DECIMAL(5,2) NOT NULL DEFAULT 19.99,
rating DEFAULT 'G',
special_features DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id),
FOREIGN KEY (language_id) REFERENCES language (language_id),
FOREIGN KEY (original_language_id) REFERENCES language (language_id)
)
/*
1 example row:
SELECT * FROM film LIMIT 1;
film_id || title || description ||release_year ||language_id ||original_language_id ||rental_duration ||rental_rate ||length ||replacement_cost ||rating || special_features || last_update
1 ||ACADEMY DINOSAUR ||A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies || 2006 || 1 || None || 6 || 0.99 || 86 || 20.99 || PG ||Deleted Scenes,Behind the Scenes ||2006-02-15 05:03:42
*/
CREATE TABLE film_actor (
actor_id SMALLINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id,film_id),
FOREIGN KEY (actor_id) REFERENCES actor (actor_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM film_actor LIMIT 1;
actor_id ||film_id || last_update
1 || 1 ||2006-02-15 05:05:03
*/
CREATE TABLE film_category (
film_id SMALLINT UNSIGNED NOT NULL,
category_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (film_id, category_id),
FOREIGN KEY (film_id) REFERENCES film (film_id),
FOREIGN KEY (category_id) REFERENCES category (category_id)
)
/*
1 example row:
SELECT * FROM film_category LIMIT 1;
film_id ||category_id || last_update
1 || 6 ||2006-02-15 05:07:09
*/
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id)
)
/*
1 example row:
SELECT * FROM film_text LIMIT 1;
film_id ||title ||description
*/
CREATE TABLE inventory (
inventory_id MEDIUMINT UNSIGNED NOT NULL,
film_id SMALLINT UNSIGNED NOT NULL,
store_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (inventory_id),
FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (film_id) REFERENCES film (film_id)
)
/*
1 example row:
SELECT * FROM inventory LIMIT 1;
inventory_id ||film_id ||store_id || last_update
1 || 1 || 1 ||2006-02-15 05:09:17
*/
CREATE TABLE language (
language_id TINYINT UNSIGNED NOT NULL,
name CHAR(20) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (language_id)
)
/*
1 example row:
SELECT * FROM language LIMIT 1;
language_id ||name ||last_update
*/
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
rental_id INT DEFAULT NULL,
amount DECIMAL(5,2) NOT NULL,
payment_date DATETIME NOT NULL,
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (payment_id),
FOREIGN KEY (rental_id) REFERENCES rental (rental_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
)
/*
1 example row:
SELECT * FROM payment LIMIT 1;
payment_id ||customer_id ||staff_id ||rental_id ||amount || payment_date || last_update
1 || 1 || 1 || 76 || 2.99 ||2005-05-25 11:30:37 ||2006-02-15 22:12:30
*/
CREATE TABLE rental (
rental_id INT NOT NULL,
rental_date DATETIME NOT NULL,
inventory_id MEDIUMINT UNSIGNED NOT NULL,
customer_id SMALLINT UNSIGNED NOT NULL,
return_date DATETIME DEFAULT NULL,
staff_id TINYINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (rental_id),
FOREIGN KEY (staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id),
FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
)
/*
1 example row:
SELECT * FROM rental LIMIT 1;
rental_id || rental_date ||inventory_id ||customer_id || return_date ||staff_id || last_update
1 ||2005-05-24 22:53:30 || 367 || 130 ||2005-05-26 22:04:30 || 1 ||2006-02-15 21:30:53
*/
CREATE TABLE staff (
staff_id TINYINT UNSIGNED NOT NULL,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
picture BLOB DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL,
store_id TINYINT UNSIGNED NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
username VARCHAR(16) NOT NULL,
password VARCHAR(40) DEFAULT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (staff_id),
--FOREIGN KEY (store_id) REFERENCES store (store_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||first_name ||last_name ||address_id ||picture ||email ||store_id ||active ||username ||password ||last_update
*/
CREATE TABLE store (
store_id TINYINT UNSIGNED NOT NULL,
manager_staff_id TINYINT UNSIGNED NOT NULL,
address_id SMALLINT UNSIGNED NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (store_id),
FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id),
FOREIGN KEY (address_id) REFERENCES address (address_id)
)
/*
1 example row:
SELECT * FROM store LIMIT 1;
store_id ||manager_staff_id ||address_id ||last_update
*/
|
3,006 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
4438,
1690,
6201,
23962,
527,
1070,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
6201,
66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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
6201,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
How many bank branches are there?
| [query_database(**{'query': 'SELECT count(*) FROM bank'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,008 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
4438,
1690,
6444,
527,
1070,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
40305,
3659,
16254,
388,
8,
4393,
6201,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
40305,
3659,
16254,
388,
8,
4393,
6201,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
How many customers are there?
| [query_database(**{'query': 'SELECT sum(no_of_customers) FROM bank'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,010 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
1396,
315,
6444,
304,
279,
14286,
520,
1561,
4356,
4409,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
40305,
3659,
16254,
388,
8,
4393,
6201,
5401,
3363,
220,
284,
220,
364,
3648,
4356,
4409,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
40305,
3659,
16254,
388,
8,
4393,
6201,
5401,
3363,
220,
284,
220,
364,
3648,
4356,
4409,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the number of customers in the banks at New York City.
| [query_database(**{'query': 'SELECT sum(no_of_customers) FROM bank WHERE city = 'New York City''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,014 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
5578,
1396,
315,
6444,
5425,
682,
14286,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
20291,
40305,
3659,
16254,
388,
8,
4393,
6201,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
20291,
40305,
3659,
16254,
388,
8,
4393,
6201,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the average number of customers cross all banks.
| [query_database(**{'query': 'SELECT avg(no_of_customers) FROM bank'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,018 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
9046,
5144,
315,
14286,
304,
279,
1561,
4356,
1614,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
293,
609,
4393,
6201,
5401,
1614,
220,
284,
220,
364,
3648,
4356,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
293,
609,
4393,
6201,
5401,
1614,
220,
284,
220,
364,
3648,
4356,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the branch names of banks in the New York state.
| [query_database(**{'query': 'SELECT bname FROM bank WHERE state = 'New York''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,022 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
861,
279,
836,
315,
682,
2204,
6444,
889,
617,
1063,
11941,
10839,
555,
872,
2860,
11941,
3392,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
522,
592,
1292,
4393,
6130,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
522,
592,
1292,
4393,
6130,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
522,
592,
851,
220,
284,
220,
350,
17,
522,
592,
851,
27968,
7866,
350,
16,
522,
592,
1292,
15888,
7866,
2694,
4233,
17,
26343,
22367,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
List the name of all different customers who have some loan sorted by their total loan amount.
| [query_database(**{'query': 'SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,025 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5415,
11,
2759,
4595,
11,
323,
6807,
12483,
369,
6444,
889,
617,
220,
15,
17017,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1614,
1174,
220,
1046,
1857,
1174,
220,
6807,
10622,
4393,
6130,
5401,
912,
3659,
5677,
598,
220,
284,
220,
220,
15,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1614,
1174,
220,
1046,
1857,
1174,
220,
6807,
10622,
4393,
6130,
5401,
912,
3659,
5677,
598,
220,
284,
220,
220,
15,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What are the states, account types, and credit scores for customers who have 0 loans?
| [query_database(**{'query': 'SELECT state , acc_type , credit_score FROM customer WHERE no_of_loans = 0'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,029 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
644,
1268,
1690,
2204,
5415,
527,
14286,
7559,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1614,
8,
4393,
6201,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1614,
8,
4393,
6201,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
In how many different states are banks located?
| [query_database(**{'query': 'SELECT count(DISTINCT state) FROM bank'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,033 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
323,
2759,
39954,
315,
6444,
449,
279,
6661,
264,
304,
872,
5144,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
1174,
220,
1046,
57541,
4393,
6130,
5401,
16973,
1292,
21170,
7832,
64,
4,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
1174,
220,
1046,
57541,
4393,
6130,
5401,
16973,
1292,
21170,
7832,
64,
4,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What are the names and account balances of customers with the letter a in their names?
| [query_database(**{'query': 'SELECT cust_name , acc_bal FROM customer WHERE cust_name LIKE '%a%''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,037 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
6444,
889,
617,
2225,
19523,
323,
13598,
9815,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
5401,
1046,
1857,
220,
284,
220,
364,
84157,
6,
30442,
937,
1182,
19638,
16973,
1292,
4393,
6130,
5401,
1046,
1857,
220,
284,
220,
364,
58954,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
5401,
1046,
1857,
220,
284,
220,
364,
84157,
6,
30442,
937,
1182,
19638,
16973,
1292,
4393,
6130,
5401,
1046,
1857,
220,
284,
220,
364,
58954,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What are the names of customers who have both savings and checking accounts?
| [query_database(**{'query': 'SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,041 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
6444,
889,
617,
539,
4529,
264,
22806,
425,
11941,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
4154,
21752,
19638,
350,
16,
522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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
4154,
21752,
19638,
350,
16,
522,
592,
1292,
4393,
6130,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
522,
592,
851,
220,
284,
220,
350,
17,
522,
592,
851,
5401,
350,
17,
13,
39429,
1857,
220,
284,
220,
364,
44,
371,
56144,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What are the names of customers who have not taken a Mortage loan?
| [query_database(**{'query': 'SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,045 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
6444,
449,
6807,
5573,
2753,
1109,
279,
5578,
6807,
5573,
4028,
6444,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
5401,
6807,
10622,
220,
366,
220,
320,
4963,
20291,
7,
24193,
10622,
8,
4393,
6130,
22367,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
5401,
6807,
10622,
220,
366,
220,
320,
4963,
20291,
7,
24193,
10622,
8,
4393,
6130,
22367,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What are the names of customers with credit score less than the average credit score across customers?
| [query_database(**{'query': 'SELECT cust_name FROM customer WHERE credit_score < (SELECT avg(credit_score) FROM customer)'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,050 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
836,
11,
2759,
955,
11,
323,
2759,
8335,
315,
279,
6130,
889,
706,
279,
8592,
6807,
5573,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
1174,
220,
1046,
1857,
1174,
220,
1046,
57541,
4393,
6130,
15888,
7866,
6807,
10622,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
1174,
220,
1046,
1857,
1174,
220,
1046,
57541,
4393,
6130,
15888,
7866,
6807,
10622,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the name, account type, and account balance of the customer who has the highest credit score.
| [query_database(**{'query': 'SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,054 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
1614,
902,
706,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1614,
4393,
6201,
27968,
7866,
1614,
15888,
7866,
2694,
40305,
3659,
16254,
388,
8,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the state which has the most number of customers.
| [query_database(**{'query': 'SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,058 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
2520,
1855,
1614,
11,
1505,
279,
2860,
2759,
8335,
315,
6444,
6832,
6807,
5573,
374,
3485,
220,
1041,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
49555,
57541,
8,
1174,
220,
1614,
4393,
6130,
5401,
6807,
10622,
220,
871,
220,
220,
1041,
27968,
7866,
1614,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
49555,
57541,
8,
1174,
220,
1614,
4393,
6130,
5401,
6807,
10622,
220,
871,
220,
220,
1041,
27968,
7866,
1614,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
For each state, find the total account balance of customers whose credit score is above 100.
| [query_database(**{'query': 'SELECT sum(acc_bal) , state FROM customer WHERE credit_score > 100 GROUP BY state'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,062 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
836,
315,
6444,
889,
617,
810,
1109,
832,
11941,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
522,
592,
1292,
4393,
6130,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
522,
592,
851,
220,
284,
220,
350,
17,
522,
592,
851,
27968,
7866,
350,
16,
522,
592,
1292,
473,
84822,
1797,
29771,
220,
871,
220,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
522,
592,
1292,
4393,
6130,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
522,
592,
851,
220,
284,
220,
350,
17,
522,
592,
851,
27968,
7866,
350,
16,
522,
592,
1292,
473,
84822,
1797,
29771,
220,
871,
220,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the name of customers who have more than one loan.
| [query_database(**{'query': 'SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count(*) > 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,066 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
836,
315,
6201,
9046,
430,
3984,
279,
12474,
2860,
3392,
315,
17017,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
960,
609,
4393,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
960,
609,
4393,
6201,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
53660,
851,
220,
284,
220,
350,
17,
53660,
851,
27968,
7866,
350,
16,
960,
609,
15888,
7866,
2694,
4233,
17,
26343,
8,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the name of bank branch that provided the greatest total amount of loans.
| [query_database(**{'query': 'SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,070 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
10086,
279,
836,
315,
6201,
23962,
430,
3984,
1063,
17017,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
350,
16,
960,
609,
4393,
6201,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
53660,
851,
220,
284,
220,
350,
17,
53660,
851,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
350,
16,
960,
609,
4393,
6201,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
53660,
851,
220,
284,
220,
350,
17,
53660,
851,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
Find the name of bank branches that provided some loans.
| [query_database(**{'query': 'SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,073 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
2204,
5144,
323,
6807,
12483,
315,
6444,
889,
617,
4529,
264,
11941,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
350,
16,
522,
592,
1292,
1174,
220,
350,
16,
86528,
10622,
4393,
6130,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
522,
592,
851,
220,
284,
220,
350,
17,
522,
592,
851,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
350,
16,
522,
592,
1292,
1174,
220,
350,
16,
86528,
10622,
4393,
6130,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
522,
592,
851,
220,
284,
220,
350,
17,
522,
592,
851,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What are the different names and credit scores of customers who have taken a loan?
| [query_database(**{'query': 'SELECT DISTINCT T1.cust_name , T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,077 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
323,
9919,
315,
6201,
23962,
430,
3085,
17017,
369,
2626,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
960,
609,
1174,
220,
350,
16,
27473,
4393,
6201,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
53660,
851,
220,
284,
220,
350,
17,
53660,
851,
5401,
350,
17,
13,
39429,
1857,
220,
284,
220,
364,
23562,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
960,
609,
1174,
220,
350,
16,
27473,
4393,
6201,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
53660,
851,
220,
284,
220,
350,
17,
53660,
851,
5401,
350,
17,
13,
39429,
1857,
220,
284,
220,
364,
23562,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What are the names and cities of bank branches that offer loans for business?
| [query_database(**{'query': 'SELECT T1.bname , T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,081 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
6201,
2456,
18424,
3533,
528,
38567,
12282,
345,
65,
609,
34058,
7,
508,
1350,
2201,
3659,
16254,
388,
528,
345,
9103,
34058,
7,
605,
1350,
2513,
34058,
7,
508,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6201,
10592,
220,
16,
26,
4815,
9046,
3533,
1393,
415,
293,
609,
1393,
2201,
3659,
16254,
388,
1393,
260,
3363,
1393,
256,
1614,
720,
286,
220,
16,
1393,
76,
52785,
579,
1393,
310,
220,
9639,
1393,
3648,
4356,
4409,
1393,
3648,
4356,
2355,
6343,
23421,
14700,
6130,
2456,
45514,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
45514,
1292,
34058,
7,
508,
1350,
4575,
1857,
1181,
7,
16,
1350,
4575,
57541,
528,
345,
2201,
3659,
5677,
598,
528,
345,
24193,
10622,
528,
345,
18424,
3533,
528,
345,
2513,
34058,
7,
508,
1350,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
10592,
220,
16,
26,
4815,
16973,
3533,
1393,
45514,
1292,
1393,
4575,
1857,
1393,
4575,
57541,
1393,
2201,
3659,
5677,
598,
1393,
24193,
10622,
1393,
18424,
3533,
1393,
2513,
720,
415,
220,
16,
1393,
257,
10455,
1393,
220,
14324,
1393,
256,
220,
1049,
15,
1393,
692,
220,
17,
1393,
692,
220,
966,
1393,
286,
220,
17,
1393,
23195,
2355,
6343,
23421,
14700,
11941,
2456,
39429,
3533,
34058,
7,
18,
8,
38567,
12282,
345,
39429,
1857,
34058,
7,
868,
1350,
45514,
3533,
34058,
7,
18,
1350,
18424,
3533,
34058,
7,
18,
1350,
6173,
528,
345,
34123,
6399,
12282,
78962,
3533,
8,
79756,
6201,
78962,
3533,
1350,
34123,
6399,
12282,
3100,
592,
3533,
8,
79756,
6130,
3100,
592,
3533,
1192,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11941,
10592,
220,
16,
26,
4815,
11941,
3533,
1393,
39429,
1857,
1393,
45514,
3533,
1393,
18424,
3533,
1393,
6173,
720,
415,
220,
16,
1393,
44,
371,
56144,
1393,
415,
220,
16,
1393,
286,
220,
16,
1393,
220,
220,
10866,
15,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
2860,
3392,
315,
3300,
11941,
291,
555,
14286,
304,
1561,
4356,
1614,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
4233,
17,
26343,
8,
4393,
6201,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
4233,
17,
26343,
8,
4393,
6201,
5871,
350,
16,
13369,
11941,
5871,
350,
17,
6328,
350,
16,
53660,
851,
220,
284,
220,
350,
17,
53660,
851,
5401,
350,
16,
3551,
220,
284,
220,
364,
3648,
4356,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
### Question
What is the total amount of money loaned by banks in New York state?
| [query_database(**{'query': 'SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE bank (
branch_ID int PRIMARY KEY,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20))
/*
1 example row:
SELECT * FROM bank LIMIT 1;
branch_ID || bname ||no_of_customers || city || state
1 ||morningside || 203 ||New York City ||New York
*/
CREATE TABLE customer (
cust_ID varchar(3) PRIMARY KEY,
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20),
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID))
/*
1 example row:
SELECT * FROM customer LIMIT 1;
cust_ID ||cust_name ||acc_type ||acc_bal ||no_of_loans ||credit_score ||branch_ID ||state
1 || Mary || saving || 2000 || 2 || 30 || 2 || Utah
*/
CREATE TABLE loan (
loan_ID varchar(3) PRIMARY KEY,
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int,
FOREIGN KEY(branch_ID) REFERENCES bank(branch_ID),
FOREIGN KEY(Cust_ID) REFERENCES customer(Cust_ID))
/*
1 example row:
SELECT * FROM loan LIMIT 1;
loan_ID ||loan_type ||cust_ID ||branch_ID ||amount
1 ||Mortgages || 1 || 1 || 2050
*/
|
3,086 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
4438,
1690,
15813,
8554,
527,
1070,
304,
2860,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
5871,
937,
1242,
5441,
9348,
1600,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
5871,
937,
1242,
5441,
9348,
1600,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
How many assessment notes are there in total?
| [query_database(**{'query': 'SELECT count(*) FROM ASSESSMENT_NOTES'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,090 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
5715,
682,
12742,
33273,
955,
14236,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
33273,
1857,
4229,
4393,
16828,
3012,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
33273,
1857,
4229,
4393,
16828,
3012,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
Return all distinct detention type codes.
| [query_database(**{'query': 'SELECT DISTINCT detention_type_code FROM Detention'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,094 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
2613,
315,
279,
5575,
449,
1176,
836,
330,
90174,
1,
323,
1566,
836,
330,
49,
57572,
44969,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2613,
6886,
4393,
20783,
5401,
1176,
1292,
220,
284,
220,
330,
90174,
1,
3651,
1566,
1292,
220,
284,
220,
330,
49,
57572,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2613,
6886,
4393,
20783,
5401,
1176,
1292,
220,
284,
220,
330,
90174,
1,
3651,
1566,
1292,
220,
284,
220,
330,
49,
57572,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
What is the email of the student with first name "Emma" and last name "Rohan"?
| [query_database(**{'query': 'SELECT email_address FROM Students WHERE first_name = "Emma" AND last_name = "Rohan"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,098 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
7340,
323,
8187,
15438,
19160,
369,
682,
5575,
14564,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1973,
45823,
398,
84227,
278,
8,
1174,
220,
1332,
45823,
398,
84227,
278,
8,
4393,
11988,
22056,
44357,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1973,
45823,
398,
84227,
278,
8,
1174,
220,
1332,
45823,
398,
84227,
278,
8,
4393,
11988,
22056,
44357,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
Find the maximum and minimum monthly rental for all student addresses.
| [query_database(**{'query': 'SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,102 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
1176,
5144,
323,
1566,
5144,
315,
13639,
304,
84398,
2015,
315,
1566,
836,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1176,
1292,
1174,
220,
1566,
1292,
4393,
47802,
15888,
7866,
1566,
1292,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1176,
1292,
1174,
220,
1566,
1292,
4393,
47802,
15888,
7866,
1566,
1292,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
Find the first names and last names of teachers in alphabetical order of last name.
| [query_database(**{'query': 'SELECT first_name , last_name FROM Teachers ORDER BY last_name'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,106 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
887,
323,
1566,
836,
315,
279,
5575,
430,
706,
279,
1455,
7865,
24455,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
41213,
851,
1174,
220,
350,
17,
9288,
1292,
4393,
27773,
27062,
66,
1748,
5871,
350,
16,
13369,
20783,
5871,
350,
17,
6328,
350,
16,
41213,
851,
220,
284,
220,
350,
17,
41213,
851,
27968,
7866,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
41213,
851,
1174,
220,
350,
17,
9288,
1292,
4393,
27773,
27062,
66,
1748,
5871,
350,
16,
13369,
20783,
5871,
350,
17,
6328,
350,
16,
41213,
851,
220,
284,
220,
350,
17,
41213,
851,
27968,
7866,
350,
16,
41213,
851,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
Find the id and last name of the student that has the most behavior incidents?
| [query_database(**{'query': 'SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,110 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
2082,
323,
4096,
315,
279,
1455,
21420,
7865,
10672,
955,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
27895,
1748,
1857,
4229,
1174,
220,
350,
17,
27895,
1748,
1857,
11703,
4393,
27773,
27062,
66,
1748,
5871,
350,
16,
13369,
8718,
27062,
66,
1748,
14045,
5871,
350,
17,
6328,
350,
16,
27895,
1748,
1857,
4229,
220,
284,
220,
350,
17,
27895,
1748,
1857,
4229,
27968,
7866,
350,
16,
27895,
1748,
1857,
4229,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
27895,
1748,
1857,
4229,
1174,
220,
350,
17,
27895,
1748,
1857,
11703,
4393,
27773,
27062,
66,
1748,
5871,
350,
16,
13369,
8718,
27062,
66,
1748,
14045,
5871,
350,
17,
6328,
350,
16,
27895,
1748,
1857,
4229,
220,
284,
220,
350,
17,
27895,
1748,
1857,
4229,
27968,
7866,
350,
16,
27895,
1748,
1857,
4229,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
What are the code and description of the most frequent behavior incident type?
| [query_database(**{'query': 'SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,114 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
10086,
279,
1212,
323,
842,
13003,
315,
7865,
24455,
315,
4236,
449,
1566,
836,
330,
48334,
36661,
3343,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
10108,
32385,
1748,
5011,
1174,
220,
2457,
32385,
1748,
6345,
4393,
27773,
27062,
66,
1748,
5871,
350,
16,
13369,
20783,
5871,
350,
17,
6328,
350,
16,
41213,
851,
220,
284,
220,
350,
17,
41213,
851,
5401,
350,
17,
9288,
1292,
220,
284,
220,
330,
48334,
36661,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
10108,
32385,
1748,
5011,
1174,
220,
2457,
32385,
1748,
6345,
4393,
27773,
27062,
66,
1748,
5871,
350,
16,
13369,
20783,
5871,
350,
17,
6328,
350,
16,
41213,
851,
220,
284,
220,
350,
17,
41213,
851,
5401,
350,
17,
9288,
1292,
220,
284,
220,
330,
48334,
36661,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
Find the start and end dates of behavior incidents of students with last name "Fahey".
| [query_database(**{'query': 'SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = "Fahey"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,118 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
15438,
48104,
315,
5575,
14564,
304,
8421,
1614,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
28151,
398,
84227,
278,
4393,
92530,
5871,
350,
16,
13369,
11988,
22056,
44357,
5871,
350,
17,
6328,
350,
16,
14111,
851,
220,
284,
220,
350,
17,
14111,
851,
5401,
350,
16,
3551,
98216,
3259,
88,
220,
284,
220,
330,
51325,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
28151,
398,
84227,
278,
4393,
92530,
5871,
350,
16,
13369,
11988,
22056,
44357,
5871,
350,
17,
6328,
350,
16,
14111,
851,
220,
284,
220,
350,
17,
14111,
851,
5401,
350,
16,
3551,
98216,
3259,
88,
220,
284,
220,
330,
51325,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
What are the monthly rentals of student addresses in Texas state?
| [query_database(**{'query': 'SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = "Texas"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,122 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
4032,
65999,
1159,
1842,
63,
2456,
63,
5102,
1857,
4229,
63,
38689,
7,
868,
8,
38567,
12282,
345,
63,
5102,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
6886,
9962,
10592,
220,
16,
26,
4815,
2686,
1857,
4229,
1393,
5102,
1857,
11703,
720,
1835,
93746,
1393,
338,
73550,
2355,
6343,
23421,
14700,
1595,
4032,
1586,
295,
3012,
14045,
63,
2456,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
19842,
3012,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
25413,
3012,
1857,
10592,
220,
16,
26,
4815,
33273,
1857,
4229,
1393,
19842,
3012,
1857,
11703,
720,
1835,
70747,
220,
1393,
260,
12220,
15996,
892,
2355,
6343,
23421,
14700,
1595,
4032,
27062,
66,
1748,
14045,
63,
2456,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
38567,
12282,
345,
63,
76111,
1857,
11703,
63,
38689,
7,
1490,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2098,
32385,
1748,
1857,
10592,
220,
16,
26,
4815,
10672,
1857,
4229,
1393,
76111,
1857,
11703,
720,
1835,
5782,
9311,
1393,
504,
51623,
2355,
6343,
23421,
14700,
1595,
53390,
63,
2456,
63,
5102,
851,
63,
31481,
38567,
12282,
345,
63,
1074,
62,
16,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
17,
63,
38689,
7,
4364,
1350,
63,
1074,
62,
18,
63,
38689,
7,
4364,
1350,
63,
9103,
63,
38689,
7,
1490,
1350,
63,
10169,
6467,
1889,
63,
38689,
7,
508,
1350,
63,
2513,
98216,
3259,
88,
63,
38689,
7,
1135,
1350,
63,
11389,
63,
38689,
7,
1135,
1350,
63,
1605,
6886,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14564,
10592,
220,
16,
26,
4815,
2686,
851,
1393,
260,
1584,
62,
16,
1393,
1074,
62,
17,
1393,
1074,
62,
18,
1393,
310,
3363,
1393,
10169,
6467,
1889,
1393,
2513,
98216,
3259,
88,
1393,
11389,
1393,
1605,
6886,
13563,
720,
260,
220,
16,
1393,
11139,
507,
7379,
41560,
1393,
220,
2290,
1393,
220,
2290,
1393,
26287,
68342,
346,
8078,
1393,
260,
220,
4468,
1393,
2342,
28621,
1393,
262,
7427,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
32052,
63,
2456,
63,
12307,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1272,
1350,
63,
4354,
1292,
63,
38689,
7,
1272,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1045,
13275,
84227,
278,
63,
40462,
45718,
345,
63,
1045,
9774,
5012,
3050,
63,
40462,
45718,
345,
63,
1605,
37853,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
5997,
35591,
5617,
1393,
1078,
2613,
6886,
1393,
220,
2457,
13275,
84227,
278,
1393,
1045,
9774,
5012,
3050,
1393,
1605,
37853,
13563,
720,
260,
220,
16,
1393,
286,
220,
777,
1393,
415,
36035,
1393,
256,
36532,
292,
1393,
262,
42087,
276,
1393,
415,
220,
12422,
13,
22889,
13,
26007,
19,
1393,
67,
61500,
1190,
58106,
36587,
916,
1393,
679,
22,
12,
717,
12,
2304,
220,
868,
25,
508,
25,
2371,
1393,
220,
679,
23,
12,
2839,
12,
2839,
220,
2839,
25,
1644,
25,
2304,
1393,
338,
2290,
2355,
6343,
23421,
14700,
1595,
95669,
63,
2456,
63,
24247,
851,
63,
31481,
38567,
12282,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1490,
1350,
63,
20231,
1292,
63,
38689,
7,
1490,
1350,
63,
4354,
1292,
63,
38689,
7,
1490,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
5997,
35591,
5617,
63,
38689,
7,
1272,
1350,
63,
2386,
6886,
63,
38689,
7,
1272,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13639,
10592,
220,
16,
26,
4815,
11326,
851,
1393,
5102,
851,
1393,
3983,
1292,
1393,
20231,
1292,
1393,
4354,
1292,
1393,
13265,
1393,
5997,
35591,
5617,
1393,
415,
2613,
6886,
1393,
1605,
13563,
720,
260,
220,
16,
1393,
286,
220,
868,
1393,
415,
445,
61822,
1393,
257,
17882,
1393,
3344,
70200,
1393,
257,
220,
16,
1393,
415,
220,
24763,
13,
8765,
13,
24876,
19,
1393,
2319,
8836,
288,
36587,
916,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
5733,
24280,
1635,
6429,
63,
2456,
63,
18790,
851,
63,
31481,
4276,
1808,
13801,
63,
12307,
851,
63,
31481,
345,
63,
24247,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
3659,
46238,
63,
40462,
45718,
345,
63,
1342,
3659,
46238,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15813,
46238,
10592,
220,
16,
26,
4815,
8554,
851,
1393,
12307,
851,
1393,
24247,
851,
1393,
415,
2457,
3659,
46238,
1393,
1342,
3659,
46238,
1393,
1605,
13563,
720,
996,
220,
16,
1393,
260,
220,
22,
1393,
260,
220,
18,
1393,
4468,
23,
12,
2371,
12,
868,
220,
2371,
25,
2491,
25,
972,
1393,
260,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
23593,
27062,
66,
1748,
63,
2456,
63,
76111,
851,
63,
31481,
38567,
12282,
345,
63,
76111,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
32385,
1748,
5011,
63,
40462,
45718,
345,
63,
1045,
32385,
1748,
6345,
63,
40462,
45718,
345,
63,
76111,
28350,
63,
38689,
7,
3192,
1350,
63,
67689,
811,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
76111,
1857,
4229,
63,
883,
79756,
1595,
4032,
27062,
66,
1748,
14045,
63,
5931,
76111,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7865,
32385,
1748,
10592,
220,
16,
26,
4815,
10672,
851,
1393,
76111,
1857,
4229,
1393,
12307,
851,
1393,
1045,
32385,
1748,
5011,
1393,
220,
2457,
32385,
1748,
6345,
1393,
76111,
28350,
1393,
67689,
811,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
1835,
5782,
9311,
1393,
260,
220,
21,
1393,
679,
22,
12,
2589,
12,
2545,
220,
605,
25,
2371,
25,
1032,
1393,
679,
23,
12,
2839,
12,
2318,
220,
975,
25,
2318,
25,
4370,
1393,
310,
2290,
1393,
1881,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
17513,
3012,
63,
2456,
63,
19842,
3012,
851,
63,
31481,
38567,
12282,
345,
63,
19842,
3012,
1857,
4229,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
24247,
851,
63,
31481,
345,
63,
15814,
25413,
3012,
5011,
63,
40462,
45718,
345,
63,
15814,
25413,
3012,
6345,
63,
40462,
45718,
345,
63,
19842,
3012,
28350,
63,
38689,
7,
3192,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
19842,
3012,
1857,
4229,
63,
883,
79756,
1595,
4032,
1586,
295,
3012,
14045,
63,
5931,
19842,
3012,
1857,
4229,
63,
2907,
34123,
6399,
12282,
29754,
24247,
851,
63,
883,
79756,
1595,
95669,
63,
5931,
24247,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
33273,
10592,
220,
16,
26,
4815,
33273,
851,
1393,
19842,
3012,
1857,
4229,
1393,
24247,
851,
1393,
15814,
25413,
3012,
5011,
1393,
15814,
25413,
3012,
6345,
1393,
19842,
3012,
28350,
1393,
1605,
13563,
720,
1881,
220,
16,
1393,
1078,
49364,
1393,
260,
220,
22,
1393,
257,
220,
679,
22,
12,
2545,
12,
2304,
220,
410,
25,
1987,
25,
914,
1393,
256,
220,
679,
23,
12,
2839,
12,
2318,
220,
2437,
25,
2318,
25,
843,
1393,
1835,
2290,
1393,
260,
2290,
2355,
6343,
23421,
14700,
1595,
14428,
22056,
44357,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
5102,
851,
63,
31481,
4276,
1808,
345,
63,
1045,
6886,
5791,
63,
40462,
45718,
4276,
1808,
345,
63,
1045,
6886,
2401,
63,
40462,
45718,
345,
63,
70238,
84227,
278,
63,
43917,
38677,
7,
777,
11,
19,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
5102,
851,
63,
883,
79756,
1595,
53390,
63,
5931,
5102,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
60571,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
5102,
851,
1393,
220,
2457,
6886,
5791,
1393,
262,
2457,
6886,
2401,
1393,
70238,
84227,
278,
1393,
1605,
13563,
720,
260,
220,
21,
1393,
286,
220,
717,
1393,
679,
22,
12,
605,
12,
845,
220,
1032,
25,
3487,
25,
1958,
1393,
679,
23,
12,
2839,
12,
868,
220,
605,
25,
1806,
25,
777,
1393,
415,
220,
23038,
13,
19852,
24,
1393,
286,
3838,
2355,
6343,
23421,
14700,
1595,
32052,
1265,
1586,
295,
3012,
63,
2456,
63,
12307,
851,
63,
31481,
4276,
1808,
345,
63,
19842,
3012,
851,
63,
31481,
4276,
1808,
345,
63,
76111,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
76111,
851,
63,
883,
79756,
1595,
23593,
27062,
66,
1748,
63,
5931,
76111,
851,
63,
2907,
34123,
6399,
12282,
29754,
19842,
3012,
851,
63,
883,
79756,
1595,
17513,
3012,
63,
5931,
19842,
3012,
851,
63,
2907,
34123,
6399,
12282,
29754,
12307,
851,
63,
883,
79756,
1595,
32052,
63,
5931,
12307,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4236,
1265,
25413,
3012,
10592,
220,
16,
26,
4815,
5575,
851,
1393,
19842,
3012,
851,
1393,
76111,
851,
720,
260,
220,
18,
1393,
692,
220,
868,
1393,
692,
220,
16,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
2613,
14564,
315,
13639,
6832,
2686,
706,
10521,
2082,
330,
25828,
44969,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
10048,
6886,
4393,
92530,
5871,
350,
16,
13369,
47802,
5871,
350,
17,
6328,
350,
16,
14111,
851,
220,
284,
220,
350,
17,
14111,
851,
5401,
350,
16,
21666,
6467,
1889,
220,
284,
220,
330,
25828,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
### Question
What are the email addresses of teachers whose address has zip code "918"?
| [query_database(**{'query': 'SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = "918"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Ref_Address_Types` (
`address_type_code` VARCHAR(15) PRIMARY KEY,
`address_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_address_types LIMIT 1;
address_type_code ||address_type_description
BILL || Billing
*/
CREATE TABLE `Ref_Detention_Type` (
`detention_type_code` VARCHAR(10) PRIMARY KEY,
`detention_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_detention_type LIMIT 1;
detention_type_code ||detention_type_description
BREAK || During Break time
*/
CREATE TABLE `Ref_Incident_Type` (
`incident_type_code` VARCHAR(10) PRIMARY KEY,
`incident_type_description` VARCHAR(80)
)
/*
1 example row:
SELECT * FROM ref_incident_type LIMIT 1;
incident_type_code ||incident_type_description
NOISE || Noise
*/
CREATE TABLE `Addresses` (
`address_id` INTEGER PRIMARY KEY,
`line_1` VARCHAR(120),
`line_2` VARCHAR(120),
`line_3` VARCHAR(120),
`city` VARCHAR(80),
`zip_postcode` VARCHAR(20),
`state_province_county` VARCHAR(50),
`country` VARCHAR(50),
`other_address_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM addresses LIMIT 1;
address_id || line_1 ||line_2 ||line_3 || city ||zip_postcode ||state_province_county ||country ||other_address_details
1 ||020 Orie Canyon || None || None ||North Loyceville || 197 || Hawaii || USA || None
*/
CREATE TABLE `Students` (
`student_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(40),
`last_name` VARCHAR(40),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`date_first_rental` DATETIME,
`date_left_university` DATETIME,
`other_student_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM students LIMIT 1;
student_id ||address_id ||first_name ||middle_name ||last_name ||cell_mobile_number || email_address || date_first_rental ||date_left_university ||other_student_details
1 || 19 || Emma || Frederic || Rohan || 235.899.9744 ||[email protected] ||2017-12-05 15:20:04 || 2018-03-03 03:33:05 || None
*/
CREATE TABLE `Teachers` (
`teacher_id` INTEGER PRIMARY KEY,
`address_id` INTEGER NOT NULL,
`first_name` VARCHAR(80),
`middle_name` VARCHAR(80),
`last_name` VARCHAR(80),
`gender` VARCHAR(1),
`cell_mobile_number` VARCHAR(40),
`email_address` VARCHAR(40),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
)
/*
1 example row:
SELECT * FROM teachers LIMIT 1;
teacher_id ||address_id ||first_name ||middle_name ||last_name ||gender ||cell_mobile_number || email_address ||other_details
1 || 15 || Lyla || Wilson || Medhurst || 1 || 792.333.7714 ||[email protected] || None
*/
CREATE TABLE `Assessment_Notes` (
`notes_id` INTEGER NOT NULL ,
`student_id` INTEGER,
`teacher_id` INTEGER NOT NULL,
`date_of_notes` DATETIME,
`text_of_notes` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM assessment_notes LIMIT 1;
notes_id ||student_id ||teacher_id || date_of_notes ||text_of_notes ||other_details
1 || 7 || 3 ||1978-04-15 04:49:18 || None || None
*/
CREATE TABLE `Behavior_Incident` (
`incident_id` INTEGER PRIMARY KEY,
`incident_type_code` VARCHAR(10) NOT NULL,
`student_id` INTEGER NOT NULL,
`date_incident_start` DATETIME,
`date_incident_end` DATETIME,
`incident_summary` VARCHAR(255),
`recommendations` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM behavior_incident LIMIT 1;
incident_id ||incident_type_code ||student_id ||date_incident_start || date_incident_end ||incident_summary ||recommendations ||other_details
1 || NOISE || 6 ||2017-07-09 10:04:13 ||2018-03-08 14:08:54 || None || None || None
*/
CREATE TABLE `Detention` (
`detention_id` INTEGER PRIMARY KEY,
`detention_type_code` VARCHAR(10) NOT NULL,
`teacher_id` INTEGER,
`datetime_detention_start` DATETIME,
`datetime_detention_end` DATETIME,
`detention_summary` VARCHAR(255),
`other_details` VARCHAR(255),
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
)
/*
1 example row:
SELECT * FROM detention LIMIT 1;
detention_id ||detention_type_code ||teacher_id ||datetime_detention_start ||datetime_detention_end ||detention_summary ||other_details
1 || AFTER || 7 || 2017-09-05 00:38:25 || 2018-03-08 02:08:32 || None || None
*/
CREATE TABLE `Student_Addresses` (
`student_id` INTEGER NOT NULL,
`address_id` INTEGER NOT NULL,
`date_address_from` DATETIME NOT NULL,
`date_address_to` DATETIME,
`monthly_rental` DECIMAL(19,4),
`other_details` VARCHAR(255),
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM student_addresses LIMIT 1;
student_id ||address_id || date_address_from || date_address_to ||monthly_rental ||other_details
6 || 12 ||2017-10-16 13:56:34 ||2018-03-15 10:37:19 || 826.4319 || house
*/
CREATE TABLE `Students_in_Detention` (
`student_id` INTEGER NOT NULL,
`detention_id` INTEGER NOT NULL,
`incident_id` INTEGER NOT NULL,
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
)
/*
1 example row:
SELECT * FROM students_in_detention LIMIT 1;
student_id ||detention_id ||incident_id
3 || 15 || 1
*/
|
3,126 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
23956,
12032,
617,
220,
17,
5596,
323,
617,
2753,
1109,
220,
17,
14867,
18929,
30,
1796,
279,
9513,
887,
323,
7872,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
36383,
851,
1174,
220,
350,
16,
36383,
13563,
4393,
41738,
5871,
350,
16,
13369,
23429,
1106,
7183,
5871,
350,
17,
6328,
350,
16,
36383,
851,
220,
284,
220,
350,
17,
36383,
851,
27968,
7866,
350,
16,
36383,
851,
473,
84822,
1797,
29771,
220,
284,
220,
220,
17,
30442,
937,
1182,
19638,
350,
16,
36383,
851,
1174,
220,
350,
16,
36383,
13563,
4393,
41738,
5871,
350,
16,
13369,
60249,
45183,
5871,
350,
17,
6328,
350,
16,
36383,
851,
220,
284,
220,
350,
17,
36383,
851,
27968,
7866,
350,
16,
36383,
851,
473,
84822,
1797,
29771,
220,
366,
220,
220,
17,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
36383,
851,
1174,
220,
350,
16,
36383,
13563,
4393,
41738,
5871,
350,
16,
13369,
23429,
1106,
7183,
5871,
350,
17,
6328,
350,
16,
36383,
851,
220,
284,
220,
350,
17,
36383,
851,
27968,
7866,
350,
16,
36383,
851,
473,
84822,
1797,
29771,
220,
284,
220,
220,
17,
30442,
937,
1182,
19638,
350,
16,
36383,
851,
1174,
220,
350,
16,
36383,
13563,
4393,
41738,
5871,
350,
16,
13369,
60249,
45183,
5871,
350,
17,
6328,
350,
16,
36383,
851,
220,
284,
220,
350,
17,
36383,
851,
27968,
7866,
350,
16,
36383,
851,
473,
84822,
1797,
29771,
220,
366,
220,
220,
17,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.
| [query_database(**{'query': 'SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) < 2'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,130 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
836,
323,
887,
315,
279,
5687,
889,
12715,
279,
14867,
1515,
719,
706,
539,
25559,
904,
17136,
25175,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
92966,
1292,
1174,
220,
350,
16,
92966,
851,
4393,
17381,
5871,
350,
16,
13369,
60249,
45183,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
33124,
291,
3795,
48160,
851,
4154,
21752,
19638,
350,
18,
92966,
1292,
1174,
220,
350,
18,
92966,
851,
4393,
17381,
5871,
350,
18,
13369,
29483,
2388,
285,
1220,
5871,
350,
19,
6328,
350,
18,
92966,
851,
220,
284,
220,
350,
19,
34035,
48160,
851,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
92966,
1292,
1174,
220,
350,
16,
92966,
851,
4393,
17381,
5871,
350,
16,
13369,
60249,
45183,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
33124,
291,
3795,
48160,
851,
4154,
21752,
19638,
350,
18,
92966,
1292,
1174,
220,
350,
18,
92966,
851,
4393,
17381,
5871,
350,
18,
13369,
29483,
2388,
285,
1220,
5871,
350,
19,
6328,
350,
18,
92966,
851,
220,
284,
220,
350,
19,
34035,
48160,
851,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?
| [query_database(**{'query': 'SELECT T1.staff_name , T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name , T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,134 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
2520,
682,
279,
57790,
315,
2204,
5596,
11,
1148,
527,
682,
279,
409,
25712,
315,
279,
7512,
2631,
311,
5155,
1124,
30,
1796,
279,
836,
315,
279,
57790,
323,
279,
10151,
4096,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
840,
957,
17087,
1292,
1174,
220,
350,
18,
65234,
11703,
4393,
3744,
1426,
957,
82,
5871,
350,
16,
13369,
31340,
62,
8327,
39446,
1426,
953,
5871,
350,
17,
6328,
350,
16,
24424,
71197,
851,
220,
284,
220,
350,
17,
24424,
71197,
851,
13369,
31340,
5871,
350,
18,
6328,
350,
17,
65234,
851,
220,
284,
220,
350,
18,
65234,
851,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
840,
957,
17087,
1292,
1174,
220,
350,
18,
65234,
11703,
4393,
3744,
1426,
957,
82,
5871,
350,
16,
13369,
31340,
62,
8327,
39446,
1426,
953,
5871,
350,
17,
6328,
350,
16,
24424,
71197,
851,
220,
284,
220,
350,
17,
24424,
71197,
851,
13369,
31340,
5871,
350,
18,
6328,
350,
17,
65234,
851,
220,
284,
220,
350,
18,
65234,
851,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.
| [query_database(**{'query': 'SELECT T1.fault_short_name , T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,138 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
3923,
527,
682,
279,
12742,
1566,
5144,
315,
682,
279,
25175,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
1566,
1292,
4393,
39306,
2135,
71991,
388,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
1566,
1292,
4393,
39306,
2135,
71991,
388,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
What are all the distinct last names of all the engineers?
| [query_database(**{'query': 'SELECT DISTINCT last_name FROM Maintenance_Engineers'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,142 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
4599,
574,
279,
1176,
9513,
19426,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
9513,
15060,
3004,
4257,
4393,
41738,
15888,
7866,
9513,
15060,
3004,
4257,
20382,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
9513,
15060,
3004,
4257,
4393,
41738,
15888,
7866,
9513,
15060,
3004,
4257,
20382,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
When was the first asset acquired?
| [query_database(**{'query': 'SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,146 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
23956,
5687,
617,
25559,
902,
25175,
30,
1796,
279,
5687,
836,
323,
279,
24490,
1176,
836,
323,
1566,
836,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
92966,
1292,
1174,
220,
350,
18,
7541,
1292,
1174,
220,
350,
18,
9288,
1292,
4393,
17381,
5871,
350,
16,
13369,
29483,
2388,
285,
1220,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
34035,
48160,
851,
13369,
39306,
2135,
71991,
388,
5871,
350,
18,
6328,
350,
17,
25421,
261,
851,
220,
284,
220,
350,
18,
25421,
261,
851,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
92966,
1292,
1174,
220,
350,
18,
7541,
1292,
1174,
220,
350,
18,
9288,
1292,
4393,
17381,
5871,
350,
16,
13369,
29483,
2388,
285,
1220,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
34035,
48160,
851,
13369,
39306,
2135,
71991,
388,
5871,
350,
18,
6328,
350,
17,
25421,
261,
851,
220,
284,
220,
350,
18,
25421,
261,
851,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
Which staff have contacted which engineers? List the staff name and the engineer first name and last name.
| [query_database(**{'query': 'SELECT T1.staff_name , T3.first_name , T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,150 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
861,
279,
682,
279,
12032,
1304,
11,
1646,
11,
3649,
555,
279,
26655,
2457,
36488,
398,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
9513,
29330,
1174,
220,
9513,
5156,
1174,
220,
9513,
13563,
4393,
41738,
15888,
7866,
9513,
10135,
3950,
4257,
20382,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
9513,
29330,
1174,
220,
9513,
5156,
1174,
220,
9513,
13563,
4393,
41738,
15888,
7866,
9513,
10135,
3950,
4257,
20382,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
List the all the assets make, model, details by the disposed date ascendingly.
| [query_database(**{'query': 'SELECT asset_make , asset_model , asset_details FROM Assets ORDER BY asset_disposed_date ASC'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,154 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
1595,
38075,
1106,
6862,
17376,
17443,
63,
2456,
63,
10348,
851,
63,
31481,
38567,
12282,
13801,
63,
10348,
1857,
63,
38689,
7,
20,
8,
4276,
1808,
345,
63,
10348,
1292,
63,
38689,
7,
3192,
1350,
63,
10348,
6886,
63,
38689,
7,
3192,
1350,
63,
1605,
34503,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4948,
45121,
3038,
17443,
10592,
220,
16,
26,
4815,
2883,
851,
1393,
692,
2883,
1857,
1393,
220,
2883,
1292,
1393,
10348,
6886,
1393,
1605,
34503,
13563,
720,
260,
220,
16,
1393,
93835,
87618,
1393,
27317,
20069,
7424,
3200,
1393,
21385,
52756,
386,
28844,
1393,
2342,
58149,
2355,
6343,
23421,
14700,
1595,
93835,
15450,
37288,
63,
2456,
63,
99178,
52599,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
20871,
5011,
4257,
63,
40462,
45718,
345,
63,
20871,
6345,
4257,
63,
40462,
45718,
345,
63,
1605,
52599,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
3464,
37288,
10592,
220,
16,
26,
4815,
13709,
52599,
851,
1393,
99178,
52599,
34503,
851,
1393,
20871,
5011,
4257,
1393,
220,
5226,
6345,
4257,
1393,
1605,
52599,
13563,
720,
2611,
220,
16,
1393,
6663,
220,
868,
1393,
679,
22,
12,
2545,
12,
1032,
220,
806,
25,
3971,
25,
1682,
1393,
679,
23,
12,
2839,
12,
845,
220,
1691,
25,
1691,
25,
1135,
1393,
1733,
2290,
2355,
6343,
23421,
14700,
1595,
30021,
63,
2456,
63,
4581,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
1292,
63,
38689,
7,
3192,
1350,
63,
14215,
481,
62,
1910,
63,
38689,
7,
16,
1350,
63,
14215,
481,
13779,
63,
38689,
7,
508,
1350,
63,
1605,
10715,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5596,
10592,
220,
16,
26,
4815,
961,
851,
1393,
4581,
1292,
1393,
14215,
481,
62,
1910,
1393,
14215,
481,
13779,
1393,
1605,
10715,
13563,
720,
415,
220,
16,
1393,
415,
1948,
1393,
310,
220,
15,
1393,
394,
220,
19,
1393,
1078,
2290,
2355,
6343,
23421,
14700,
1595,
47761,
63,
2456,
63,
30554,
851,
63,
31481,
38567,
12282,
345,
63,
30554,
4229,
63,
38689,
7,
508,
1350,
63,
30554,
11703,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
10592,
220,
16,
26,
4815,
10151,
851,
1393,
30554,
4229,
1393,
30554,
11703,
720,
996,
220,
16,
1393,
415,
469,
85230,
1393,
996,
45034,
2355,
6343,
23421,
14700,
1595,
34311,
63,
2456,
63,
28221,
851,
63,
31481,
38567,
12282,
345,
63,
28221,
1292,
63,
38689,
7,
3192,
1350,
63,
13265,
63,
38689,
7,
16,
1350,
63,
1605,
48160,
13563,
63,
38689,
7,
3192,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5687,
10592,
220,
16,
26,
4815,
5687,
851,
1393,
28221,
1292,
1393,
13265,
1393,
1605,
48160,
13563,
720,
996,
220,
16,
1393,
15416,
265,
20991,
1393,
257,
220,
16,
1393,
310,
10790,
2355,
6343,
23421,
14700,
1595,
27977,
63,
2456,
63,
10053,
851,
63,
31481,
38567,
12282,
345,
63,
99178,
52599,
851,
63,
31481,
4276,
1808,
345,
63,
40930,
34503,
851,
63,
31481,
4276,
1808,
345,
63,
10053,
13563,
63,
38689,
7,
3192,
1350,
63,
10053,
29330,
63,
38689,
7,
508,
1350,
63,
10053,
5156,
63,
38689,
7,
508,
1350,
63,
10053,
15060,
3004,
4257,
63,
40462,
45718,
345,
63,
10053,
10135,
3950,
4257,
63,
40462,
45718,
345,
63,
1605,
43399,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
99178,
52599,
851,
63,
1763,
86584,
1595,
93835,
15450,
37288,
63,
5931,
99178,
52599,
851,
63,
2907,
34123,
6399,
12282,
29754,
40930,
34503,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
12032,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
99178,
52599,
851,
1393,
40930,
34503,
851,
1393,
10053,
13563,
1393,
10053,
29330,
1393,
10053,
5156,
1393,
10053,
15060,
3004,
4257,
1393,
10053,
10135,
3950,
4257,
1393,
1605,
43399,
13563,
720,
996,
220,
16,
1393,
2611,
220,
17,
1393,
1733,
220,
17,
1393,
25219,
21288,
16,
1393,
286,
19932,
1393,
415,
220,
2970,
18393,
1393,
679,
22,
12,
717,
12,
914,
220,
410,
25,
2148,
25,
1544,
1393,
679,
23,
12,
2839,
12,
975,
220,
605,
25,
1135,
25,
410,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
17015,
1106,
7183,
63,
2456,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
2907,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9513,
34317,
10592,
220,
16,
26,
4815,
9513,
851,
1393,
4581,
851,
720,
996,
220,
20,
1393,
415,
220,
18,
2355,
6343,
23421,
14700,
1595,
93835,
2135,
71991,
388,
63,
2456,
63,
8680,
261,
851,
63,
31481,
38567,
12282,
345,
63,
10348,
851,
63,
31481,
4276,
1808,
345,
63,
3983,
1292,
63,
38689,
7,
1135,
1350,
63,
4354,
1292,
63,
38689,
7,
1135,
1350,
63,
1605,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10348,
851,
63,
883,
79756,
1595,
38075,
1106,
6862,
17376,
17443,
63,
5931,
10348,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13709,
25860,
388,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
10348,
851,
1393,
3983,
1292,
1393,
4354,
1292,
1393,
1605,
13563,
720,
692,
220,
16,
1393,
286,
220,
975,
1393,
415,
14693,
64,
1393,
220,
1050,
5248,
1393,
415,
4923,
4473,
2355,
6343,
23421,
14700,
1595,
4674,
261,
1117,
62025,
63,
2456,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
94080,
10592,
220,
16,
26,
4815,
24490,
851,
1393,
30554,
851,
720,
260,
220,
605,
1393,
996,
220,
17,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
38567,
12282,
345,
63,
10053,
851,
63,
31481,
4276,
1808,
345,
63,
8716,
291,
3795,
48160,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
30043,
63,
40462,
45718,
345,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
10053,
851,
63,
883,
79756,
1595,
27977,
63,
5931,
10053,
851,
63,
2907,
34123,
6399,
12282,
29754,
8716,
291,
3795,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
10053,
851,
1393,
8716,
291,
3795,
48160,
851,
1393,
60672,
5337,
9255,
30043,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
338,
220,
16,
1393,
996,
220,
18,
1393,
1733,
220,
975,
1393,
257,
220,
679,
23,
12,
2839,
12,
1691,
220,
2371,
25,
914,
25,
410,
1393,
257,
1887,
1493,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
4674,
261,
2388,
285,
1220,
63,
2456,
63,
8680,
261,
57584,
851,
63,
31481,
38567,
12282,
345,
63,
6421,
48160,
851,
63,
31481,
345,
63,
8680,
261,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
63,
28560,
5011,
30043,
63,
40462,
45718,
345,
63,
28560,
6345,
30043,
63,
40462,
45718,
345,
63,
1605,
57584,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
2907,
34123,
6399,
12282,
29754,
8680,
261,
851,
63,
883,
79756,
1595,
93835,
2135,
71991,
388,
63,
5931,
8680,
261,
851,
63,
2907,
34123,
6399,
12282,
29754,
6421,
48160,
851,
63,
883,
79756,
1595,
34311,
63,
5931,
28221,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
24490,
16266,
1220,
10592,
220,
16,
26,
4815,
24490,
57584,
851,
1393,
6421,
48160,
851,
1393,
8680,
261,
851,
1393,
60672,
5337,
9255,
851,
1393,
60672,
4878,
1393,
28560,
5011,
30043,
1393,
4034,
6345,
30043,
1393,
1605,
57584,
13563,
720,
394,
220,
16,
1393,
2342,
220,
23,
1393,
692,
220,
23,
1393,
394,
220,
1032,
1393,
257,
53286,
1393,
220,
4468,
23,
12,
605,
12,
717,
220,
1419,
25,
975,
25,
1272,
1393,
3753,
23,
12,
1721,
12,
2589,
220,
2705,
25,
3174,
25,
3971,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
5920,
1426,
957,
82,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
38567,
12282,
345,
63,
4581,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
17087,
1292,
63,
38689,
7,
508,
1350,
63,
60672,
11703,
63,
38689,
7,
3192,
1350,
63,
1605,
71197,
13563,
63,
38689,
7,
3192,
1350,
34123,
6399,
12282,
29754,
4581,
851,
63,
883,
79756,
1595,
30021,
63,
5931,
4581,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
961,
71197,
82,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
4581,
851,
1393,
60672,
17087,
1292,
1393,
60672,
11703,
1393,
1605,
71197,
13563,
720,
310,
220,
16,
1393,
415,
220,
16,
1393,
1078,
59393,
1393,
262,
17333,
41856,
1393,
2342,
2290,
2355,
6343,
23421,
14700,
1595,
59880,
45183,
1106,
7183,
63,
2456,
63,
60672,
5337,
9255,
851,
63,
31481,
4276,
1808,
345,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
60672,
4878,
63,
38689,
7,
605,
8,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
60672,
5337,
9255,
851,
63,
883,
79756,
1595,
59880,
45183,
63,
5931,
60672,
5337,
9255,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14867,
5337,
34317,
10592,
220,
16,
26,
4815,
14867,
5337,
9255,
851,
1393,
4581,
71197,
851,
1393,
60672,
4878,
720,
394,
220,
717,
1393,
310,
220,
18,
1393,
262,
79711,
2355,
6343,
23421,
14700,
1595,
47761,
62,
8327,
39446,
1426,
953,
63,
2456,
63,
4581,
71197,
851,
63,
31481,
4276,
1808,
345,
63,
30554,
851,
63,
31481,
4276,
1808,
345,
34123,
6399,
12282,
29754,
4581,
71197,
851,
63,
883,
79756,
1595,
5920,
1426,
957,
82,
63,
5931,
4581,
71197,
851,
63,
2907,
34123,
6399,
12282,
29754,
30554,
851,
63,
883,
79756,
1595,
47761,
63,
5931,
30554,
851,
63,
1763,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7512,
19265,
2401,
37160,
10592,
220,
16,
26,
4815,
961,
71197,
851,
1393,
30554,
851,
720,
310,
220,
18,
1393,
996,
220,
17,
2355,
6343,
14711,
16225,
198,
23956,
10026,
3727,
709,
279,
8857,
315,
279,
5687,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
10026,
4393,
5687,
27968,
7866,
10026,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
10026,
4393,
5687,
27968,
7866,
10026,
15888,
7866,
1797,
29771,
16477,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
### Question
Which gender makes up the majority of the staff?
| [query_database(**{'query': 'SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE `Third_Party_Companies` (
`company_id` INTEGER PRIMARY KEY ,
`company_type` VARCHAR(5) NOT NULL,
`company_name` VARCHAR(255),
`company_address` VARCHAR(255),
`other_company_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM third_party_companies LIMIT 1;
company_id || company_type || company_name ||company_address ||other_company_details
1 ||Maintenance Contractor ||Langworth-Funk ||615 Jacobs Mews || Uganda
*/
CREATE TABLE `Maintenance_Contracts` (
`maintenance_contract_id` INTEGER PRIMARY KEY,
`maintenance_contract_company_id` INTEGER NOT NULL,
`contract_start_date` DATETIME,
`contract_end_date` DATETIME,
`other_contract_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_contracts LIMIT 1;
maintenance_contract_id ||maintenance_contract_company_id ||contract_start_date || contract_end_date ||other_contract_details
1 || 15 ||2017-09-13 11:51:29 ||2018-03-16 21:21:50 || None
*/
CREATE TABLE `Parts` (
`part_id` INTEGER PRIMARY KEY,
`part_name` VARCHAR(255),
`chargeable_yn` VARCHAR(1),
`chargeable_amount` VARCHAR(20),
`other_part_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM parts LIMIT 1;
part_id ||part_name ||chargeable_yn ||chargeable_amount ||other_part_details
1 || top || 0 || 4 || None
*/
CREATE TABLE `Skills` (
`skill_id` INTEGER PRIMARY KEY,
`skill_code` VARCHAR(20),
`skill_description` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM skills LIMIT 1;
skill_id ||skill_code ||skill_description
1 || ELEC || Electrical
*/
CREATE TABLE `Staff` (
`staff_id` INTEGER PRIMARY KEY,
`staff_name` VARCHAR(255),
`gender` VARCHAR(1),
`other_staff_details` VARCHAR(255)
)
/*
1 example row:
SELECT * FROM staff LIMIT 1;
staff_id ||staff_name ||gender ||other_staff_details
1 || Audreanne || 1 || Manager
*/
CREATE TABLE `Assets` (
`asset_id` INTEGER PRIMARY KEY,
`maintenance_contract_id` INTEGER NOT NULL,
`supplier_company_id` INTEGER NOT NULL,
`asset_details` VARCHAR(255),
`asset_make` VARCHAR(20),
`asset_model` VARCHAR(20),
`asset_acquired_date` DATETIME,
`asset_disposed_date` DATETIME,
`other_asset_details` VARCHAR(255),
FOREIGN KEY (`maintenance_contract_id` )
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM assets LIMIT 1;
asset_id ||maintenance_contract_id ||supplier_company_id ||asset_details ||asset_make ||asset_model ||asset_acquired_date ||asset_disposed_date ||other_asset_details
1 || 2 || 2 || dell laptop1 || PT || 58 ub ||2017-12-25 00:31:27 ||2018-03-14 10:50:00 || None
*/
CREATE TABLE `Asset_Parts` (
`asset_id` INTEGER NOT NULL,
`part_id` INTEGER NOT NULL,
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
)
/*
1 example row:
SELECT * FROM asset_parts LIMIT 1;
asset_id ||part_id
5 || 3
*/
CREATE TABLE `Maintenance_Engineers` (
`engineer_id` INTEGER PRIMARY KEY,
`company_id` INTEGER NOT NULL,
`first_name` VARCHAR(50),
`last_name` VARCHAR(50),
`other_details` VARCHAR(255),
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
)
/*
1 example row:
SELECT * FROM maintenance_engineers LIMIT 1;
engineer_id ||company_id ||first_name ||last_name ||other_details
1 || 14 || Etha || Reinger || Skilled
*/
CREATE TABLE `Engineer_Skills` (
`engineer_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM engineer_skills LIMIT 1;
engineer_id ||skill_id
10 || 2
*/
CREATE TABLE `Fault_Log` (
`fault_log_entry_id` INTEGER PRIMARY KEY,
`asset_id` INTEGER NOT NULL,
`recorded_by_staff_id` INTEGER NOT NULL,
`fault_log_entry_datetime` DATETIME,
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM fault_log LIMIT 1;
fault_log_entry_id ||asset_id ||recorded_by_staff_id ||fault_log_entry_datetime ||fault_description ||other_fault_details
1 || 3 || 14 || 2018-03-21 04:25:00 || system error || None
*/
CREATE TABLE `Engineer_Visits` (
`engineer_visit_id` INTEGER PRIMARY KEY,
`contact_staff_id` INTEGER,
`engineer_id` INTEGER NOT NULL,
`fault_log_entry_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
`visit_start_datetime` DATETIME,
`visit_end_datetime` DATETIME,
`other_visit_details` VARCHAR(255),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
)
/*
1 example row:
SELECT * FROM engineer_visits LIMIT 1;
engineer_visit_id ||contact_staff_id ||engineer_id ||fault_log_entry_id ||fault_status ||visit_start_datetime || visit_end_datetime ||other_visit_details
1 || 8 || 8 || 13 || Waiting || 1978-10-12 23:14:40 ||1988-01-07 06:41:51 || None
*/
CREATE TABLE `Part_Faults` (
`part_fault_id` INTEGER PRIMARY KEY,
`part_id` INTEGER NOT NULL,
`fault_short_name` VARCHAR(20),
`fault_description` VARCHAR(255),
`other_fault_details` VARCHAR(255),
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
)
/*
1 example row:
SELECT * FROM part_faults LIMIT 1;
part_fault_id ||part_id ||fault_short_name ||fault_description ||other_fault_details
1 || 1 || PW || Package Wrong || None
*/
CREATE TABLE `Fault_Log_Parts` (
`fault_log_entry_id` INTEGER NOT NULL,
`part_fault_id` INTEGER NOT NULL,
`fault_status` VARCHAR(10) NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
)
/*
1 example row:
SELECT * FROM fault_log_parts LIMIT 1;
fault_log_entry_id ||part_fault_id ||fault_status
12 || 3 || Reported
*/
CREATE TABLE `Skills_Required_To_Fix` (
`part_fault_id` INTEGER NOT NULL,
`skill_id` INTEGER NOT NULL,
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
)
/*
1 example row:
SELECT * FROM skills_required_to_fix LIMIT 1;
part_fault_id ||skill_id
3 || 2
*/
|
3,158 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
330,
10613,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
10613,
5617,
1,
528,
345,
262,
330,
609,
1,
1495,
345,
262,
330,
8781,
1,
1495,
345,
262,
330,
18481,
1,
1495,
345,
262,
330,
1712,
1,
1495,
345,
262,
330,
29004,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5542,
10592,
220,
16,
26,
4815,
887,
1393,
10613,
5617,
1393,
2342,
836,
1393,
262,
6371,
1393,
18481,
1393,
892,
1393,
29004,
720,
220,
16,
1393,
996,
220,
11515,
1187,
1393,
2127,
32329,
391,
6198,
17855,
1393,
1305,
344,
438,
10952,
1393,
262,
64921,
1393,
1114,
25,
868,
1393,
256,
13690,
2355,
6343,
23421,
14700,
330,
20762,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
17969,
1292,
1,
1495,
345,
262,
330,
13069,
1,
1495,
345,
262,
330,
2497,
23790,
488,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8216,
10592,
220,
16,
26,
4815,
887,
1393,
17969,
1292,
1393,
7714,
3600,
1393,
2497,
23790,
488,
720,
220,
16,
1393,
262,
3383,
388,
5721,
1393,
35773,
31611,
1584,
323,
921,
2088,
77,
24720,
2336,
1393,
996,
921,
2088,
77,
2355,
6343,
23421,
14700,
330,
9143,
1,
2456,
262,
330,
10613,
851,
1,
528,
345,
262,
330,
20762,
851,
1,
528,
345,
262,
6156,
1401,
3573,
10613,
851,
498,
330,
20762,
851,
4561,
262,
7362,
1401,
3573,
10613,
851,
909,
15407,
1595,
10613,
63,
446,
307,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
1595,
20762,
63,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6149,
10592,
220,
16,
26,
4815,
5542,
851,
1393,
20762,
851,
720,
996,
220,
16,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
330,
72867,
70464,
1,
2456,
262,
330,
20762,
851,
1,
528,
345,
262,
330,
1316,
3659,
32377,
1,
1495,
345,
262,
330,
12156,
54625,
1,
528,
345,
262,
330,
10516,
54625,
1,
528,
345,
262,
330,
10872,
575,
7709,
1,
1972,
345,
262,
330,
19703,
17374,
722,
764,
1,
528,
345,
262,
6156,
1401,
3573,
20762,
851,
498,
330,
1316,
3659,
32377,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
330,
20762,
1,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
17496,
70464,
10592,
220,
16,
26,
4815,
8216,
851,
1393,
1316,
3659,
32377,
1393,
12156,
54625,
1393,
10516,
54625,
1393,
10872,
575,
7709,
1393,
19703,
17374,
722,
764,
720,
260,
220,
16,
1393,
257,
7159,
1393,
1078,
220,
2946,
1393,
1835,
220,
4370,
1393,
260,
220,
1954,
13,
15,
1393,
310,
220,
1032,
2355,
6343,
14711,
16225,
198,
3528,
682,
5542,
5219,
323,
5144,
11713,
555,
872,
892,
505,
4216,
311,
3389,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5542,
5617,
1174,
220,
836,
4393,
5542,
15888,
7866,
23029,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5542,
5617,
1174,
220,
836,
4393,
5542,
15888,
7866,
23029,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
### Question
show all train numbers and names ordered by their time from early to late.
| [query_database(**{'query': 'SELECT train_number , name FROM train ORDER BY TIME'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
|
3,162 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
330,
10613,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
10613,
5617,
1,
528,
345,
262,
330,
609,
1,
1495,
345,
262,
330,
8781,
1,
1495,
345,
262,
330,
18481,
1,
1495,
345,
262,
330,
1712,
1,
1495,
345,
262,
330,
29004,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5542,
10592,
220,
16,
26,
4815,
887,
1393,
10613,
5617,
1393,
2342,
836,
1393,
262,
6371,
1393,
18481,
1393,
892,
1393,
29004,
720,
220,
16,
1393,
996,
220,
11515,
1187,
1393,
2127,
32329,
391,
6198,
17855,
1393,
1305,
344,
438,
10952,
1393,
262,
64921,
1393,
1114,
25,
868,
1393,
256,
13690,
2355,
6343,
23421,
14700,
330,
20762,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
17969,
1292,
1,
1495,
345,
262,
330,
13069,
1,
1495,
345,
262,
330,
2497,
23790,
488,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8216,
10592,
220,
16,
26,
4815,
887,
1393,
17969,
1292,
1393,
7714,
3600,
1393,
2497,
23790,
488,
720,
220,
16,
1393,
262,
3383,
388,
5721,
1393,
35773,
31611,
1584,
323,
921,
2088,
77,
24720,
2336,
1393,
996,
921,
2088,
77,
2355,
6343,
23421,
14700,
330,
9143,
1,
2456,
262,
330,
10613,
851,
1,
528,
345,
262,
330,
20762,
851,
1,
528,
345,
262,
6156,
1401,
3573,
10613,
851,
498,
330,
20762,
851,
4561,
262,
7362,
1401,
3573,
10613,
851,
909,
15407,
1595,
10613,
63,
446,
307,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
1595,
20762,
63,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6149,
10592,
220,
16,
26,
4815,
5542,
851,
1393,
20762,
851,
720,
996,
220,
16,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
330,
72867,
70464,
1,
2456,
262,
330,
20762,
851,
1,
528,
345,
262,
330,
1316,
3659,
32377,
1,
1495,
345,
262,
330,
12156,
54625,
1,
528,
345,
262,
330,
10516,
54625,
1,
528,
345,
262,
330,
10872,
575,
7709,
1,
1972,
345,
262,
330,
19703,
17374,
722,
764,
1,
528,
345,
262,
6156,
1401,
3573,
20762,
851,
498,
330,
1316,
3659,
32377,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
330,
20762,
1,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
17496,
70464,
10592,
220,
16,
26,
4815,
8216,
851,
1393,
1316,
3659,
32377,
1393,
12156,
54625,
1393,
10516,
54625,
1393,
10872,
575,
7709,
1393,
19703,
17374,
722,
764,
720,
260,
220,
16,
1393,
257,
7159,
1393,
1078,
220,
2946,
1393,
1835,
220,
4370,
1393,
260,
220,
1954,
13,
15,
1393,
310,
220,
1032,
2355,
6343,
14711,
16225,
198,
10086,
279,
1396,
315,
28788,
6041,
505,
1855,
6371,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
6371,
1174,
220,
1797,
29771,
4393,
5542,
27968,
7866,
6371,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
6371,
1174,
220,
1797,
29771,
4393,
5542,
27968,
7866,
6371,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
### Question
Find the number of trains starting from each origin.
| [query_database(**{'query': 'SELECT origin , count(*) FROM train GROUP BY origin'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
|
3,166 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
330,
10613,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
10613,
5617,
1,
528,
345,
262,
330,
609,
1,
1495,
345,
262,
330,
8781,
1,
1495,
345,
262,
330,
18481,
1,
1495,
345,
262,
330,
1712,
1,
1495,
345,
262,
330,
29004,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5542,
10592,
220,
16,
26,
4815,
887,
1393,
10613,
5617,
1393,
2342,
836,
1393,
262,
6371,
1393,
18481,
1393,
892,
1393,
29004,
720,
220,
16,
1393,
996,
220,
11515,
1187,
1393,
2127,
32329,
391,
6198,
17855,
1393,
1305,
344,
438,
10952,
1393,
262,
64921,
1393,
1114,
25,
868,
1393,
256,
13690,
2355,
6343,
23421,
14700,
330,
20762,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
17969,
1292,
1,
1495,
345,
262,
330,
13069,
1,
1495,
345,
262,
330,
2497,
23790,
488,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8216,
10592,
220,
16,
26,
4815,
887,
1393,
17969,
1292,
1393,
7714,
3600,
1393,
2497,
23790,
488,
720,
220,
16,
1393,
262,
3383,
388,
5721,
1393,
35773,
31611,
1584,
323,
921,
2088,
77,
24720,
2336,
1393,
996,
921,
2088,
77,
2355,
6343,
23421,
14700,
330,
9143,
1,
2456,
262,
330,
10613,
851,
1,
528,
345,
262,
330,
20762,
851,
1,
528,
345,
262,
6156,
1401,
3573,
10613,
851,
498,
330,
20762,
851,
4561,
262,
7362,
1401,
3573,
10613,
851,
909,
15407,
1595,
10613,
63,
446,
307,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
1595,
20762,
63,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6149,
10592,
220,
16,
26,
4815,
5542,
851,
1393,
20762,
851,
720,
996,
220,
16,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
330,
72867,
70464,
1,
2456,
262,
330,
20762,
851,
1,
528,
345,
262,
330,
1316,
3659,
32377,
1,
1495,
345,
262,
330,
12156,
54625,
1,
528,
345,
262,
330,
10516,
54625,
1,
528,
345,
262,
330,
10872,
575,
7709,
1,
1972,
345,
262,
330,
19703,
17374,
722,
764,
1,
528,
345,
262,
6156,
1401,
3573,
20762,
851,
498,
330,
1316,
3659,
32377,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
330,
20762,
1,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
17496,
70464,
10592,
220,
16,
26,
4815,
8216,
851,
1393,
1316,
3659,
32377,
1393,
12156,
54625,
1393,
10516,
54625,
1393,
10872,
575,
7709,
1393,
19703,
17374,
722,
764,
720,
260,
220,
16,
1393,
257,
7159,
1393,
1078,
220,
2946,
1393,
1835,
220,
4370,
1393,
260,
220,
1954,
13,
15,
1393,
310,
220,
1032,
2355,
6343,
14711,
16225,
198,
36227,
757,
279,
7340,
3428,
9499,
323,
5578,
61050,
520,
279,
3383,
388,
5721,
8216,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1973,
1175,
16,
57653,
54625,
8,
1174,
220,
20291,
1175,
16,
558,
2827,
575,
7709,
8,
4393,
17496,
70464,
5871,
259,
16,
13369,
8216,
5871,
259,
17,
6328,
259,
16,
88440,
851,
220,
284,
220,
259,
17,
1801,
5401,
259,
17,
21216,
1292,
220,
284,
220,
330,
6219,
388,
5721,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1973,
1175,
16,
57653,
54625,
8,
1174,
220,
20291,
1175,
16,
558,
2827,
575,
7709,
8,
4393,
17496,
70464,
5871,
259,
16,
13369,
8216,
5871,
259,
17,
6328,
259,
16,
88440,
851,
220,
284,
220,
259,
17,
1801,
5401,
259,
17,
21216,
1292,
220,
284,
220,
330,
6219,
388,
5721,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
### Question
Give me the maximum low temperature and average precipitation at the Amersham station.
| [query_database(**{'query': 'SELECT max(t1.low_temperature) , avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = "Amersham"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
|
3,170 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
330,
10613,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
10613,
5617,
1,
528,
345,
262,
330,
609,
1,
1495,
345,
262,
330,
8781,
1,
1495,
345,
262,
330,
18481,
1,
1495,
345,
262,
330,
1712,
1,
1495,
345,
262,
330,
29004,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5542,
10592,
220,
16,
26,
4815,
887,
1393,
10613,
5617,
1393,
2342,
836,
1393,
262,
6371,
1393,
18481,
1393,
892,
1393,
29004,
720,
220,
16,
1393,
996,
220,
11515,
1187,
1393,
2127,
32329,
391,
6198,
17855,
1393,
1305,
344,
438,
10952,
1393,
262,
64921,
1393,
1114,
25,
868,
1393,
256,
13690,
2355,
6343,
23421,
14700,
330,
20762,
1,
2456,
262,
330,
307,
1,
528,
345,
262,
330,
17969,
1292,
1,
1495,
345,
262,
330,
13069,
1,
1495,
345,
262,
330,
2497,
23790,
488,
1,
1495,
345,
262,
6156,
1401,
3573,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8216,
10592,
220,
16,
26,
4815,
887,
1393,
17969,
1292,
1393,
7714,
3600,
1393,
2497,
23790,
488,
720,
220,
16,
1393,
262,
3383,
388,
5721,
1393,
35773,
31611,
1584,
323,
921,
2088,
77,
24720,
2336,
1393,
996,
921,
2088,
77,
2355,
6343,
23421,
14700,
330,
9143,
1,
2456,
262,
330,
10613,
851,
1,
528,
345,
262,
330,
20762,
851,
1,
528,
345,
262,
6156,
1401,
3573,
10613,
851,
498,
330,
20762,
851,
4561,
262,
7362,
1401,
3573,
10613,
851,
909,
15407,
1595,
10613,
63,
446,
307,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
1595,
20762,
63,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6149,
10592,
220,
16,
26,
4815,
5542,
851,
1393,
20762,
851,
720,
996,
220,
16,
1393,
260,
220,
16,
2355,
6343,
23421,
14700,
330,
72867,
70464,
1,
2456,
262,
330,
20762,
851,
1,
528,
345,
262,
330,
1316,
3659,
32377,
1,
1495,
345,
262,
330,
12156,
54625,
1,
528,
345,
262,
330,
10516,
54625,
1,
528,
345,
262,
330,
10872,
575,
7709,
1,
1972,
345,
262,
330,
19703,
17374,
722,
764,
1,
528,
345,
262,
6156,
1401,
3573,
20762,
851,
498,
330,
1316,
3659,
32377,
4561,
262,
7362,
1401,
3573,
20762,
851,
909,
15407,
330,
20762,
1,
446,
307,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
17496,
70464,
10592,
220,
16,
26,
4815,
8216,
851,
1393,
1316,
3659,
32377,
1393,
12156,
54625,
1393,
10516,
54625,
1393,
10872,
575,
7709,
1393,
19703,
17374,
722,
764,
720,
260,
220,
16,
1393,
257,
7159,
1393,
1078,
220,
2946,
1393,
1835,
220,
4370,
1393,
260,
220,
1954,
13,
15,
1393,
310,
220,
1032,
2355,
6343,
14711,
16225,
198,
10086,
279,
887,
323,
2254,
11447,
315,
279,
8216,
6832,
7340,
61050,
374,
5190,
1109,
220,
1135,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
17,
1801,
1174,
220,
259,
17,
11279,
23790,
488,
4393,
17496,
70464,
5871,
259,
16,
13369,
8216,
5871,
259,
17,
6328,
259,
16,
88440,
851,
220,
284,
220,
259,
17,
1801,
27968,
7866,
259,
16,
88440,
851,
473,
84822,
1973,
1175,
16,
558,
2827,
575,
7709,
8,
220,
871,
220,
220,
1135,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
17,
1801,
1174,
220,
259,
17,
11279,
23790,
488,
4393,
17496,
70464,
5871,
259,
16,
13369,
8216,
5871,
259,
17,
6328,
259,
16,
88440,
851,
220,
284,
220,
259,
17,
1801,
27968,
7866,
259,
16,
88440,
851,
473,
84822,
1973,
1175,
16,
558,
2827,
575,
7709,
8,
220,
871,
220,
220,
1135,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
### Question
Find the id and local authority of the station whose maximum precipitation is higher than 50.
| [query_database(**{'query': 'SELECT t2.id , t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING max(t1.precipitation) > 50'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE "train" (
"id" int,
"train_number" int,
"name" text,
"origin" text,
"destination" text,
"time" text,
"interval" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM train LIMIT 1;
id ||train_number || name || origin ||destination || time ||interval
1 || 16724 ||Ananthapuri Express ||Trivandrum || Chennai ||17:15 || Daily
*/
CREATE TABLE "station" (
"id" int,
"network_name" text,
"services" text,
"local_authority" text,
primary key ("id")
)
/*
1 example row:
SELECT * FROM station LIMIT 1;
id ||network_name || services ||local_authority
1 || Amersham ||Metropolitan line and Chiltern Railways || Chiltern
*/
CREATE TABLE "route" (
"train_id" int,
"station_id" int,
primary key ("train_id", "station_id"),
foreign key ("train_id") references `train`("id"),
foreign key ("station_id") references `station`("id")
)
/*
1 example row:
SELECT * FROM route LIMIT 1;
train_id ||station_id
1 || 1
*/
CREATE TABLE "weekly_weather" (
"station_id" int,
"day_of_week" text,
"high_temperature" int,
"low_temperature" int,
"precipitation" real,
"wind_speed_mph" int,
primary key ("station_id", "day_of_week"),
foreign key ("station_id") references "station"("id")
)
/*
1 example row:
SELECT * FROM weekly_weather LIMIT 1;
station_id ||day_of_week ||high_temperature ||low_temperature ||precipitation ||wind_speed_mph
1 || Monday || 59 || 54 || 90.0 || 13
*/
|
3,174 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
45724,
527,
304,
279,
24043,
45693,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
14561,
5871,
350,
16,
13369,
9476,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
5401,
3467,
2898,
4813,
220,
284,
220,
330,
7516,
287,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
14561,
5871,
350,
16,
13369,
9476,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
5401,
3467,
2898,
4813,
220,
284,
220,
330,
7516,
287,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many professors are in the accounting dept?
| [query_database(**{'query': 'SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = "Accounting"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,178 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
1176,
323,
1566,
836,
315,
682,
34458,
45724,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
13,
25201,
1426,
7687,
1174,
220,
350,
18,
13,
25201,
2406,
7687,
4393,
14561,
5871,
350,
16,
13369,
9476,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
13369,
9548,
5871,
350,
18,
6328,
350,
16,
13,
25201,
9828,
220,
284,
220,
350,
18,
13,
25201,
9828,
5401,
3467,
2898,
4813,
220,
284,
220,
330,
33,
31226,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
13,
25201,
1426,
7687,
1174,
220,
350,
18,
13,
25201,
2406,
7687,
4393,
14561,
5871,
350,
16,
13369,
9476,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
13369,
9548,
5871,
350,
18,
6328,
350,
16,
13,
25201,
9828,
220,
284,
220,
350,
18,
13,
25201,
9828,
5401,
3467,
2898,
4813,
220,
284,
220,
330,
33,
31226,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
What are the first and last name of all biology professors?
| [query_database(**{'query': 'SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = "Biology"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,182 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
6989,
1587,
279,
14561,
6832,
1566,
836,
374,
94030,
668,
85,
33639,
4639,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
9548,
5871,
350,
16,
13369,
29039,
5871,
350,
17,
6328,
350,
16,
13,
25201,
9828,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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
9548,
5871,
350,
16,
13369,
29039,
5871,
350,
17,
6328,
350,
16,
13,
25201,
9828,
220,
284,
220,
350,
17,
30787,
37,
9828,
5401,
350,
16,
13,
25201,
2406,
7687,
220,
284,
220,
364,
38,
8875,
668,
85,
33639,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many classes does the professor whose last name is Graztevski teach?
| [query_database(**{'query': 'SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,186 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
4096,
369,
279,
75880,
12,
8610,
323,
1268,
1690,
20746,
1587,
433,
617,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1589,
82,
52669,
1174,
220,
1589,
82,
11703,
4393,
3388,
5401,
1589,
82,
4229,
220,
284,
220,
364,
34,
1669,
12,
8610,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1589,
82,
52669,
1174,
220,
1589,
82,
11703,
4393,
3388,
5401,
1589,
82,
4229,
220,
284,
220,
364,
34,
1669,
12,
8610,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
What is the description for the CIS-220 and how many credits does it have?
| [query_database(**{'query': 'SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,190 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
2204,
10687,
315,
279,
2978,
449,
279,
2082,
23504,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
45693,
6886,
8,
4393,
9476,
5401,
2978,
4229,
220,
284,
220,
364,
41311,
4708,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
45693,
6886,
8,
4393,
9476,
5401,
2978,
4229,
220,
284,
220,
364,
41311,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
What are the different locations of the school with the code BUS?
| [query_database(**{'query': 'SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,194 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
3388,
4096,
323,
1396,
315,
20746,
369,
1229,
44,
12,
15602,
30,
128009,
128006,
78191,
128007,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1589,
82,
52669,
1174,
220,
1589,
82,
11703,
4393,
3388,
5401,
1589,
82,
4229,
220,
284,
220,
364,
89978,
12,
15602,
4708,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
What is the course description and number of credits for QM-261?
| [query_database(**{'query': 'SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261''})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,198 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
2204,
26280,
527,
1070,
304,
1855,
2978,
430,
706,
2753,
1109,
220,
20,
32729,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
45693,
1292,
8,
1174,
220,
2978,
4229,
4393,
9476,
27968,
7866,
2978,
4229,
473,
84822,
1797,
5549,
3931,
46419,
45693,
1292,
8,
220,
366,
220,
220,
20,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many different departments are there in each school that has less than 5 apartments?
| [query_database(**{'query': 'SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,202 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
20746,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
1361,
5544,
52669,
8,
1174,
220,
45693,
4229,
4393,
3388,
27968,
7866,
45693,
4229,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many credits does the department offer?
| [query_database(**{'query': 'SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,206 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
6989,
527,
5762,
304,
1855,
9476,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
1174,
220,
45693,
4229,
4393,
29039,
5871,
350,
16,
13369,
3388,
5871,
350,
17,
6328,
350,
16,
522,
5544,
4229,
220,
284,
220,
350,
17,
522,
5544,
4229,
27968,
7866,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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
1174,
220,
45693,
4229,
4393,
29039,
5871,
350,
16,
13369,
3388,
5871,
350,
17,
6328,
350,
16,
522,
5544,
4229,
220,
284,
220,
350,
17,
522,
5544,
4229,
27968,
7866,
45693,
4229,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many classes are held in each department?
| [query_database(**{'query': 'SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,210 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
2204,
45724,
527,
1070,
369,
279,
2204,
8853,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
1174,
220,
350,
16,
67160,
4229,
4393,
9476,
5871,
350,
16,
13369,
14561,
5871,
350,
17,
6328,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
1174,
220,
350,
16,
67160,
4229,
4393,
9476,
5871,
350,
16,
13369,
14561,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
27968,
7866,
350,
16,
67160,
4229,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many different professors are there for the different schools?
| [query_database(**{'query': 'SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,214 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
23956,
2978,
706,
279,
2478,
478,
45724,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
67160,
4229,
4393,
9476,
5871,
350,
16,
13369,
14561,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
27968,
7866,
350,
16,
67160,
4229,
15888,
7866,
1797,
29771,
10592,
220,
16,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
67160,
4229,
4393,
9476,
5871,
350,
16,
13369,
14561,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
27968,
7866,
350,
16,
67160,
4229,
15888,
7866,
1797,
29771,
10592,
220,
16,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
Which school has the fewest professors?
| [query_database(**{'query': 'SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,217 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
10086,
279,
1396,
315,
4236,
369,
1855,
9476,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
1174,
220,
45693,
4229,
4393,
5575,
27968,
7866,
45693,
4229,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
1174,
220,
45693,
4229,
4393,
5575,
27968,
7866,
45693,
4229,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
Find the number of students for each department.
| [query_database(**{'query': 'SELECT count(*) , dept_code FROM student GROUP BY dept_code'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,221 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
10086,
279,
1973,
11,
5578,
11,
323,
8187,
342,
6733,
315,
682,
4236,
304,
1855,
9476,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1973,
6019,
84,
1928,
6733,
8,
1174,
220,
20291,
6019,
84,
1928,
6733,
8,
1174,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1973,
6019,
84,
1928,
6733,
8,
1174,
220,
20291,
6019,
84,
1928,
6733,
8,
1174,
220,
1332,
6019,
84,
1928,
6733,
8,
1174,
220,
45693,
4229,
4393,
5575,
27968,
7866,
45693,
4229,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
Find the max, average, and minimum gpa of all students in each department.
| [query_database(**{'query': 'SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,226 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
8853,
527,
1070,
304,
279,
9476,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
2978,
4229,
8,
4393,
9476,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many schools are there in the department?
| [query_database(**{'query': 'SELECT count(DISTINCT school_code) FROM department'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,230 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
1396,
315,
2204,
3388,
14236,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1589,
82,
4229,
8,
4393,
29039,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1589,
82,
4229,
8,
4393,
29039,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
What are the number of different course codes?
| [query_database(**{'query': 'SELECT count(DISTINCT crs_code) FROM CLASS'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,234 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
4438,
1690,
14307,
1587,
279,
9476,
315,
17863,
8245,
328,
599,
9004,
3085,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
9476,
5871,
350,
16,
13369,
3388,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
5401,
45693,
1292,
220,
284,
220,
330,
38432,
13374,
13,
15264,
21230,
5525,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
9476,
5871,
350,
16,
13369,
3388,
5871,
350,
17,
6328,
350,
16,
2337,
418,
4229,
220,
284,
220,
350,
17,
2337,
418,
4229,
5401,
45693,
1292,
220,
284,
220,
330,
38432,
13374,
13,
15264,
21230,
5525,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
How many courses does the department of Computer Information Systmes offer?
| [query_database(**{'query': 'SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = "Computer Info. Systems"'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
3,238 | [
128000,
128006,
882,
128007,
271,
33,
5412,
374,
264,
8668,
315,
11470,
23524,
264,
3488,
36864,
3465,
430,
1253,
1397,
1495,
311,
5822,
23115,
11,
1701,
279,
7372,
635,
20047,
13,
20400,
459,
8475,
4320,
311,
279,
2728,
3488,
13,
362,
3488,
374,
6646,
364,
42023,
6,
422,
433,
649,
387,
19089,
555,
82198,
505,
279,
4729,
13,
53981,
398,
1833,
279,
2631,
3645,
13,
763,
701,
4320,
1161,
705,
3041,
1193,
279,
5995,
2038,
304,
264,
64694,
1648,
13,
1472,
2011,
539,
312,
7068,
279,
1988,
10137,
382,
14711,
30151,
198,
16,
13,
16644,
459,
8029,
5429,
311,
9656,
264,
4729,
315,
5361,
12920,
1234,
364,
14711,
10199,
12824,
6,
3857,
13,
9062,
2007,
374,
8272,
555,
832,
3187,
2872,
28532,
505,
279,
4729,
323,
264,
294,
684,
661,
315,
17931,
369,
4726,
20064,
7922,
1202,
3330,
5144,
7438,
627,
17,
13,
362,
1217,
3041,
499,
264,
3488,
1234,
364,
14711,
16225,
6,
3857,
627,
18,
13,
31001,
422,
279,
1217,
3488,
374,
364,
42023,
4527,
5464,
389,
279,
2728,
7419,
315,
364,
42023,
4527,
720,
19,
13,
1442,
279,
3488,
374,
364,
42023,
518,
7068,
459,
8029,
3319,
369,
36864,
279,
3488,
323,
3637,
433,
304,
264,
3977,
7086,
330,
3628,
3343,
7557,
264,
734,
1650,
311,
459,
9434,
8029,
4817,
555,
24038,
10768,
1663,
28441,
22551,
13922,
1663,
1232,
5822,
5525,
19727,
720,
20,
13,
1442,
279,
3488,
374,
539,
364,
42023,
4527,
20400,
459,
4320,
3196,
389,
701,
1866,
22599,
13,
1442,
499,
1541,
956,
1440,
279,
4320,
11,
1120,
387,
10978,
323,
1541,
956,
1304,
709,
264,
4288,
4320,
382,
14711,
10199,
12824,
198,
23421,
14700,
29039,
2456,
25411,
10225,
34058,
7,
20,
8,
38567,
12282,
345,
9150,
50,
10225,
34058,
7,
605,
1350,
25411,
45328,
34058,
7,
17,
1350,
25411,
10257,
34058,
7,
508,
1350,
25411,
61066,
34058,
7,
23,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
9150,
50,
10225,
8,
79756,
54548,
937,
3100,
11706,
10225,
340,
34123,
6399,
12282,
320,
9295,
37,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
538,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
9150,
50,
10225,
1393,
25411,
45328,
1393,
286,
29039,
10257,
1393,
25411,
61066,
1393,
9295,
37,
9828,
720,
257,
220,
1041,
717,
1393,
1741,
1182,
12,
11483,
1393,
310,
220,
16,
1393,
44,
33231,
220,
23,
25,
410,
12,
23,
25,
1135,
264,
749,
13,
1393,
262,
23504,
15134,
1393,
257,
220,
6550,
2355,
6343,
23421,
14700,
54548,
937,
2456,
9150,
50,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9150,
50,
39268,
34058,
7,
1758,
1350,
9150,
50,
932,
57563,
2273,
7,
23,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3388,
10592,
220,
16,
26,
4815,
95342,
10225,
1393,
1170,
2898,
10225,
1393,
9150,
50,
39268,
1393,
9150,
50,
932,
57563,
720,
1741,
1182,
12,
11483,
1393,
257,
10807,
1182,
1393,
256,
45344,
358,
1393,
996,
220,
18,
13,
15,
2355,
6343,
23421,
14700,
3467,
79465,
2456,
1170,
2898,
10225,
34058,
7,
605,
8,
38567,
12282,
345,
1170,
2898,
4813,
34058,
7,
966,
1350,
50,
57920,
10225,
34058,
7,
23,
1350,
25201,
9828,
528,
345,
1170,
2898,
20739,
34058,
7,
508,
1350,
1170,
2898,
38112,
34058,
7,
19,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9476,
10592,
220,
16,
26,
4815,
3467,
2898,
10225,
1393,
3467,
2898,
4813,
1393,
50,
57920,
10225,
1393,
25201,
9828,
1393,
256,
3467,
2898,
20739,
1393,
1170,
2898,
38112,
720,
257,
10807,
1182,
1393,
7516,
287,
1393,
286,
23504,
1393,
262,
220,
8011,
1393,
42,
20721,
220,
11483,
11,
8425,
220,
4103,
1393,
692,
220,
15134,
24,
2355,
6343,
23421,
14700,
52692,
74349,
2456,
25201,
9828,
528,
38567,
12282,
345,
25201,
2406,
7687,
34058,
7,
868,
1350,
25201,
1426,
7687,
34058,
7,
717,
1350,
25201,
66972,
34058,
7,
16,
1350,
25201,
39632,
5002,
2951,
34058,
7,
20,
1350,
25201,
73636,
6641,
2390,
9050,
345,
25201,
1586,
21257,
9050,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
9548,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
25201,
2406,
7687,
1393,
25201,
1426,
7687,
1393,
25201,
66972,
1393,
25201,
39632,
5002,
2951,
1393,
25201,
73636,
6641,
2390,
1393,
220,
52692,
1586,
21257,
720,
262,
220,
1041,
1393,
256,
36636,
3258,
1393,
262,
7957,
1393,
692,
435,
1393,
996,
356,
8721,
1393,
256,
220,
4468,
23,
12,
17,
12,
1419,
1393,
6280,
15,
12,
21,
12,
717,
2355,
6343,
23421,
14700,
5301,
23081,
2456,
25411,
10225,
34058,
7,
20,
1350,
790,
52,
9828,
528,
345,
965,
23081,
77874,
1170,
34058,
7,
1135,
1350,
34123,
6399,
12282,
320,
25411,
10225,
8,
79756,
29039,
54091,
5045,
10225,
340,
34123,
6399,
12282,
320,
790,
52,
9828,
8,
79756,
58616,
1863,
41750,
52,
9828,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
52880,
10592,
220,
16,
26,
4815,
29039,
10225,
1393,
790,
52,
9828,
1393,
965,
23081,
77874,
1170,
720,
257,
220,
1041,
975,
1393,
220,
14423,
21098,
1393,
1881,
356,
2355,
6343,
23421,
14700,
26599,
10201,
878,
2456,
25201,
9828,
528,
345,
1170,
2898,
10225,
34058,
7,
605,
1350,
9295,
37,
12256,
5604,
34058,
7,
1135,
1350,
9295,
37,
38112,
34058,
7,
19,
1350,
9295,
37,
32721,
2952,
99662,
34058,
7,
20,
1350,
34123,
6399,
12282,
320,
25201,
9828,
8,
79756,
52692,
74349,
7,
25201,
9828,
1350,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14561,
10592,
220,
16,
26,
4815,
52692,
9828,
1393,
1170,
2898,
10225,
1393,
9295,
37,
12256,
5604,
1393,
9295,
37,
38112,
1393,
9295,
37,
32721,
2952,
99662,
720,
262,
220,
6889,
1393,
257,
473,
3931,
1393,
262,
423,
793,
220,
10132,
1393,
692,
220,
17458,
18,
1393,
1881,
2405,
920,
13,
2355,
6343,
23421,
14700,
58616,
1863,
2456,
790,
52,
9828,
528,
38567,
12282,
345,
790,
52,
2406,
7687,
34058,
7,
868,
1350,
790,
52,
1426,
7687,
34058,
7,
868,
1350,
790,
52,
14785,
34058,
7,
16,
1350,
790,
52,
1586,
21257,
9050,
345,
790,
52,
2083,
11706,
528,
345,
790,
52,
14051,
34058,
7,
17,
1350,
790,
52,
2712,
8201,
2273,
7,
23,
1350,
790,
52,
65797,
25031,
345,
1170,
2898,
10225,
34058,
7,
972,
1350,
790,
52,
60804,
34058,
7,
19,
1350,
9295,
37,
9828,
528,
345,
34123,
6399,
12282,
320,
1170,
2898,
10225,
8,
79756,
3467,
79465,
83308,
2898,
10225,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
4015,
52,
9828,
1393,
790,
52,
2406,
7687,
1393,
790,
52,
1426,
7687,
1393,
790,
52,
14785,
1393,
220,
4015,
52,
1586,
21257,
1393,
790,
52,
2083,
11706,
1393,
790,
52,
14051,
1393,
790,
52,
2712,
8201,
1393,
790,
52,
65797,
1393,
1170,
2898,
10225,
1393,
790,
52,
60804,
1393,
9295,
37,
9828,
720,
220,
14423,
21098,
1393,
256,
18943,
805,
1393,
220,
12656,
1393,
996,
356,
1393,
4468,
20,
12,
17,
12,
717,
1393,
257,
220,
2983,
1393,
996,
2100,
1393,
256,
220,
17,
13,
5833,
1393,
1881,
220,
15,
1393,
257,
48153,
1971,
1393,
257,
220,
11702,
19,
1393,
257,
220,
10866,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
2860,
1396,
315,
20746,
9076,
555,
1855,
9476,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
4233,
16,
522,
5544,
52669,
8,
1174,
220,
350,
16,
2337,
418,
4229,
4393,
3388,
5871,
350,
16,
13369,
29039,
5871,
350,
17,
6328,
350,
16,
522,
5544,
4229,
220,
284,
220,
350,
17,
522,
5544,
4229,
27968,
7866,
350,
16,
2337,
418,
4229,
66360,
60,
128009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
4233,
16,
522,
5544,
52669,
8,
1174,
220,
350,
16,
2337,
418,
4229,
4393,
3388,
5871,
350,
16,
13369,
29039,
5871,
350,
17,
6328,
350,
16,
522,
5544,
4229,
220,
284,
220,
350,
17,
522,
5544,
4229,
27968,
7866,
350,
16,
2337,
418,
4229,
66360,
60,
128009
] | Bellow is a sequence of instructions describing a question answering task that may require text to sql parsing, using the Sqlite syntax. Generate an appropriate answer to the given question. A question is considered 'Foo' if it can be answered by querying from the database. Strictly follow the required format. In your answer(s), give only the necessary information in a concise way. You must not re generate the input prompt.
### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
### Question
What are the total number of credits offered by each department?
| [query_database(**{'query': 'SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code'})] | ### Instruction
1. Given an SQL script to initialize a database of multiple tables under '### Database Schema' section. Each table is followed by one example row extracted from the database and a ditionary of definitions for further clarifying its column names meaning.
2. A user give you a question under '### Question' section.
3. Determine if the user question is 'Foo'. Base on the given definition of 'Foo'.
4. If the question is 'Foo', generate an SQL query for answering the question and store it in a variable named "sql". Make a function call to an external SQL engine by generating "[query_database(**{'query': sql})]"
5. If the question is not 'Foo'. Generate an answer based on your own reflection. If you don't know the answer, just be honest and don't make up a random answer.
### Database Schema
CREATE TABLE CLASS (
CLASS_CODE varchar(5) PRIMARY KEY,
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int,
FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM class LIMIT 1;
CLASS_CODE ||CRS_CODE ||CLASS_SECTION || CLASS_TIME ||CLASS_ROOM ||PROF_NUM
10012 ||ACCT-211 || 1 ||MWF 8:00-8:50 a.m. || BUS311 || 105
*/
CREATE TABLE COURSE (
CRS_CODE varchar(10) PRIMARY KEY,
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM course LIMIT 1;
CRS_CODE ||DEPT_CODE ||CRS_DESCRIPTION ||CRS_CREDIT
ACCT-211 || ACCT || Accounting I || 3.0
*/
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10) PRIMARY KEY,
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
)
/*
1 example row:
SELECT * FROM department LIMIT 1;
DEPT_CODE || DEPT_NAME ||SCHOOL_CODE ||EMP_NUM || DEPT_ADDRESS ||DEPT_EXTENSION
ACCT ||Accounting || BUS || 114 ||KLR 211, Box 52 || 3119
*/
CREATE TABLE EMPLOYEE (
EMP_NUM int PRIMARY KEY,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
/*
1 example row:
SELECT * FROM employee LIMIT 1;
EMP_NUM ||EMP_LNAME ||EMP_FNAME ||EMP_INITIAL ||EMP_JOBCODE ||EMP_HIREDATE || EMP_DOB
100 || Worley || James || F || CUST || 1978-2-23 ||1950-6-12
*/
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50),
FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
)
/*
1 example row:
SELECT * FROM enroll LIMIT 1;
CLASS_CODE ||STU_NUM ||ENROLL_GRADE
10014 || 321452 || C
*/
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5),
FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM professor LIMIT 1;
EMP_NUM ||DEPT_CODE ||PROF_OFFICE ||PROF_EXTENSION ||PROF_HIGH_DEGREE
103 || HIST || DRE 156 || 6783 || Ph.D.
*/
CREATE TABLE STUDENT (
STU_NUM int PRIMARY KEY,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int,
FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
STU_NUM ||STU_LNAME ||STU_FNAME ||STU_INIT || STU_DOB ||STU_HRS ||STU_CLASS ||STU_GPA ||STU_TRANSFER ||DEPT_CODE ||STU_PHONE ||PROF_NUM
321452 || Bowser || William || C ||1975-2-12 || 42 || So || 2.84 || 0 || BIOL || 2134 || 205
*/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.