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,650 | [
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,
12557,
81781,
51461,
2456,
13943,
29940,
851,
31481,
4276,
1808,
345,
6358,
72,
13563,
38689,
7,
3192,
1350,
80874,
12282,
320,
13943,
29940,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
25601,
3644,
10592,
220,
16,
26,
4815,
7491,
29940,
851,
1393,
272,
8318,
13563,
720,
338,
220,
16,
1393,
31224,
24621,
8288,
526,
2355,
6343,
23421,
14700,
356,
9972,
932,
2177,
62,
32812,
2456,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
13943,
29940,
851,
31481,
4276,
1808,
345,
2484,
18155,
4229,
24954,
7,
868,
8,
4276,
1808,
345,
80874,
12282,
320,
6358,
72,
36384,
7949,
851,
1350,
34123,
6399,
12282,
320,
13943,
29940,
851,
8,
79756,
12557,
81781,
51461,
320,
13943,
29940,
851,
696,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
272,
8318,
36384,
93802,
10592,
220,
16,
26,
4815,
272,
8318,
36384,
7949,
851,
1393,
13943,
29940,
851,
1393,
2484,
18155,
4229,
720,
2342,
220,
17,
1393,
338,
220,
19,
1393,
1078,
30837,
2355,
6343,
23421,
14700,
9251,
1159,
710,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15177,
25598,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
16,
1393,
1835,
220,
4645,
2355,
6343,
23421,
14700,
8184,
2632,
988,
2456,
27243,
56473,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
27243,
56473,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2626,
56473,
10592,
220,
16,
26,
4815,
2626,
56473,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
394,
220,
17,
1393,
1078,
220,
1484,
2355,
6343,
23421,
14700,
39195,
62,
1959,
64143,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7720,
15793,
64143,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
18,
1393,
1078,
220,
2397,
2355,
6343,
23421,
14700,
41282,
1426,
1572,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13217,
766,
1572,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
24,
1393,
2342,
220,
19,
2355,
6343,
23421,
14700,
30837,
1596,
81,
265,
1590,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8175,
26927,
265,
1590,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
16,
1393,
1835,
220,
1041,
2355,
6343,
23421,
14700,
67676,
74224,
2456,
19493,
10020,
14327,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
19493,
10020,
14327,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
34941,
14327,
10592,
220,
16,
26,
4815,
34941,
14327,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
504,
220,
17,
1393,
1078,
220,
6069,
2355,
6343,
14711,
16225,
198,
77604,
374,
279,
3827,
2592,
1887,
2082,
323,
7491,
6130,
887,
315,
279,
13426,
5552,
311,
1855,
13217,
7060,
887,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
15040,
18155,
4229,
1174,
220,
350,
16,
34430,
29940,
851,
1174,
220,
350,
17,
522,
6829,
25598,
851,
4393,
356,
9972,
932,
2177,
62,
32812,
5871,
350,
16,
13369,
41282,
1426,
1572,
5871,
350,
17,
6328,
350,
16,
522,
8318,
36384,
7949,
851,
220,
284,
220,
350,
17,
522,
8318,
36384,
7949,
851,
66360,
60,
128009
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
15040,
18155,
4229,
1174,
220,
350,
16,
34430,
29940,
851,
1174,
220,
350,
17,
522,
6829,
25598,
851,
4393,
356,
9972,
932,
2177,
62,
32812,
5871,
350,
16,
13369,
41282,
1426,
1572,
5871,
350,
17,
6328,
350,
16,
522,
8318,
36384,
7949,
851,
220,
284,
220,
350,
17,
522,
8318,
36384,
7949,
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 Customer_Master_Index (
master_customer_id INTEGER NOT NULL,
cmi_details VARCHAR(255),
PRIMARY KEY (master_customer_id)
)
/*
1 example row:
SELECT * FROM customer_master_index LIMIT 1;
master_customer_id || cmi_details
1 ||Schmitt-Lang
*/
CREATE TABLE CMI_Cross_References (
cmi_cross_ref_id INTEGER NOT NULL,
master_customer_id INTEGER NOT NULL,
source_system_code CHAR(15) NOT NULL,
PRIMARY KEY (cmi_cross_ref_id),
FOREIGN KEY (master_customer_id) REFERENCES Customer_Master_Index (master_customer_id)
)
/*
1 example row:
SELECT * FROM cmi_cross_references LIMIT 1;
cmi_cross_ref_id ||master_customer_id ||source_system_code
2 || 4 || Rent
*/
CREATE TABLE Council_Tax (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM council_tax LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 101
*/
CREATE TABLE Business_Rates (
business_rates_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (business_rates_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM business_rates LIMIT 1;
business_rates_id ||cmi_cross_ref_id
2 || 99
*/
CREATE TABLE Benefits_Overpayments (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM benefits_overpayments LIMIT 1;
council_tax_id ||cmi_cross_ref_id
3 || 65
*/
CREATE TABLE Parking_Fines (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM parking_fines LIMIT 1;
council_tax_id ||cmi_cross_ref_id
9 || 4
*/
CREATE TABLE Rent_Arrears (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM rent_arrears LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 100
*/
CREATE TABLE Electoral_Register (
electoral_register_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (electoral_register_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM electoral_register LIMIT 1;
electoral_register_id ||cmi_cross_ref_id
2 || 83
*/
### Question
Wat is the tax source system code and master customer id of the taxes related to each parking fine id?
| [query_database(**{'query': 'SELECT T1.source_system_code , T1.master_customer_id , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_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 Customer_Master_Index (
master_customer_id INTEGER NOT NULL,
cmi_details VARCHAR(255),
PRIMARY KEY (master_customer_id)
)
/*
1 example row:
SELECT * FROM customer_master_index LIMIT 1;
master_customer_id || cmi_details
1 ||Schmitt-Lang
*/
CREATE TABLE CMI_Cross_References (
cmi_cross_ref_id INTEGER NOT NULL,
master_customer_id INTEGER NOT NULL,
source_system_code CHAR(15) NOT NULL,
PRIMARY KEY (cmi_cross_ref_id),
FOREIGN KEY (master_customer_id) REFERENCES Customer_Master_Index (master_customer_id)
)
/*
1 example row:
SELECT * FROM cmi_cross_references LIMIT 1;
cmi_cross_ref_id ||master_customer_id ||source_system_code
2 || 4 || Rent
*/
CREATE TABLE Council_Tax (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM council_tax LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 101
*/
CREATE TABLE Business_Rates (
business_rates_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (business_rates_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM business_rates LIMIT 1;
business_rates_id ||cmi_cross_ref_id
2 || 99
*/
CREATE TABLE Benefits_Overpayments (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM benefits_overpayments LIMIT 1;
council_tax_id ||cmi_cross_ref_id
3 || 65
*/
CREATE TABLE Parking_Fines (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM parking_fines LIMIT 1;
council_tax_id ||cmi_cross_ref_id
9 || 4
*/
CREATE TABLE Rent_Arrears (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM rent_arrears LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 100
*/
CREATE TABLE Electoral_Register (
electoral_register_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (electoral_register_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM electoral_register LIMIT 1;
electoral_register_id ||cmi_cross_ref_id
2 || 83
*/
|
2,654 | [
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,
12557,
81781,
51461,
2456,
13943,
29940,
851,
31481,
4276,
1808,
345,
6358,
72,
13563,
38689,
7,
3192,
1350,
80874,
12282,
320,
13943,
29940,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
25601,
3644,
10592,
220,
16,
26,
4815,
7491,
29940,
851,
1393,
272,
8318,
13563,
720,
338,
220,
16,
1393,
31224,
24621,
8288,
526,
2355,
6343,
23421,
14700,
356,
9972,
932,
2177,
62,
32812,
2456,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
13943,
29940,
851,
31481,
4276,
1808,
345,
2484,
18155,
4229,
24954,
7,
868,
8,
4276,
1808,
345,
80874,
12282,
320,
6358,
72,
36384,
7949,
851,
1350,
34123,
6399,
12282,
320,
13943,
29940,
851,
8,
79756,
12557,
81781,
51461,
320,
13943,
29940,
851,
696,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
272,
8318,
36384,
93802,
10592,
220,
16,
26,
4815,
272,
8318,
36384,
7949,
851,
1393,
13943,
29940,
851,
1393,
2484,
18155,
4229,
720,
2342,
220,
17,
1393,
338,
220,
19,
1393,
1078,
30837,
2355,
6343,
23421,
14700,
9251,
1159,
710,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15177,
25598,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
16,
1393,
1835,
220,
4645,
2355,
6343,
23421,
14700,
8184,
2632,
988,
2456,
27243,
56473,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
27243,
56473,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2626,
56473,
10592,
220,
16,
26,
4815,
2626,
56473,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
394,
220,
17,
1393,
1078,
220,
1484,
2355,
6343,
23421,
14700,
39195,
62,
1959,
64143,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7720,
15793,
64143,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
18,
1393,
1078,
220,
2397,
2355,
6343,
23421,
14700,
41282,
1426,
1572,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13217,
766,
1572,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
24,
1393,
2342,
220,
19,
2355,
6343,
23421,
14700,
30837,
1596,
81,
265,
1590,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8175,
26927,
265,
1590,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
16,
1393,
1835,
220,
1041,
2355,
6343,
23421,
14700,
67676,
74224,
2456,
19493,
10020,
14327,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
19493,
10020,
14327,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
34941,
14327,
10592,
220,
16,
26,
4815,
34941,
14327,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
504,
220,
17,
1393,
1078,
220,
6069,
2355,
6343,
14711,
16225,
198,
861,
682,
2038,
922,
6130,
7491,
1963,
11,
323,
3460,
1124,
555,
3649,
304,
44184,
2015,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
353,
4393,
6130,
25601,
3644,
15888,
7866,
272,
8318,
13563,
16477,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
353,
4393,
6130,
25601,
3644,
15888,
7866,
272,
8318,
13563,
16477,
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 Customer_Master_Index (
master_customer_id INTEGER NOT NULL,
cmi_details VARCHAR(255),
PRIMARY KEY (master_customer_id)
)
/*
1 example row:
SELECT * FROM customer_master_index LIMIT 1;
master_customer_id || cmi_details
1 ||Schmitt-Lang
*/
CREATE TABLE CMI_Cross_References (
cmi_cross_ref_id INTEGER NOT NULL,
master_customer_id INTEGER NOT NULL,
source_system_code CHAR(15) NOT NULL,
PRIMARY KEY (cmi_cross_ref_id),
FOREIGN KEY (master_customer_id) REFERENCES Customer_Master_Index (master_customer_id)
)
/*
1 example row:
SELECT * FROM cmi_cross_references LIMIT 1;
cmi_cross_ref_id ||master_customer_id ||source_system_code
2 || 4 || Rent
*/
CREATE TABLE Council_Tax (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM council_tax LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 101
*/
CREATE TABLE Business_Rates (
business_rates_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (business_rates_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM business_rates LIMIT 1;
business_rates_id ||cmi_cross_ref_id
2 || 99
*/
CREATE TABLE Benefits_Overpayments (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM benefits_overpayments LIMIT 1;
council_tax_id ||cmi_cross_ref_id
3 || 65
*/
CREATE TABLE Parking_Fines (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM parking_fines LIMIT 1;
council_tax_id ||cmi_cross_ref_id
9 || 4
*/
CREATE TABLE Rent_Arrears (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM rent_arrears LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 100
*/
CREATE TABLE Electoral_Register (
electoral_register_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (electoral_register_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM electoral_register LIMIT 1;
electoral_register_id ||cmi_cross_ref_id
2 || 83
*/
### Question
List all information about customer master index, and sort them by details in descending order.
| [query_database(**{'query': 'SELECT * FROM customer_master_index ORDER BY cmi_details DESC'})] | ### 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 Customer_Master_Index (
master_customer_id INTEGER NOT NULL,
cmi_details VARCHAR(255),
PRIMARY KEY (master_customer_id)
)
/*
1 example row:
SELECT * FROM customer_master_index LIMIT 1;
master_customer_id || cmi_details
1 ||Schmitt-Lang
*/
CREATE TABLE CMI_Cross_References (
cmi_cross_ref_id INTEGER NOT NULL,
master_customer_id INTEGER NOT NULL,
source_system_code CHAR(15) NOT NULL,
PRIMARY KEY (cmi_cross_ref_id),
FOREIGN KEY (master_customer_id) REFERENCES Customer_Master_Index (master_customer_id)
)
/*
1 example row:
SELECT * FROM cmi_cross_references LIMIT 1;
cmi_cross_ref_id ||master_customer_id ||source_system_code
2 || 4 || Rent
*/
CREATE TABLE Council_Tax (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM council_tax LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 101
*/
CREATE TABLE Business_Rates (
business_rates_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (business_rates_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM business_rates LIMIT 1;
business_rates_id ||cmi_cross_ref_id
2 || 99
*/
CREATE TABLE Benefits_Overpayments (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM benefits_overpayments LIMIT 1;
council_tax_id ||cmi_cross_ref_id
3 || 65
*/
CREATE TABLE Parking_Fines (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM parking_fines LIMIT 1;
council_tax_id ||cmi_cross_ref_id
9 || 4
*/
CREATE TABLE Rent_Arrears (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM rent_arrears LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 100
*/
CREATE TABLE Electoral_Register (
electoral_register_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (electoral_register_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM electoral_register LIMIT 1;
electoral_register_id ||cmi_cross_ref_id
2 || 83
*/
|
2,658 | [
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,
12557,
81781,
51461,
2456,
13943,
29940,
851,
31481,
4276,
1808,
345,
6358,
72,
13563,
38689,
7,
3192,
1350,
80874,
12282,
320,
13943,
29940,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6130,
25601,
3644,
10592,
220,
16,
26,
4815,
7491,
29940,
851,
1393,
272,
8318,
13563,
720,
338,
220,
16,
1393,
31224,
24621,
8288,
526,
2355,
6343,
23421,
14700,
356,
9972,
932,
2177,
62,
32812,
2456,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
13943,
29940,
851,
31481,
4276,
1808,
345,
2484,
18155,
4229,
24954,
7,
868,
8,
4276,
1808,
345,
80874,
12282,
320,
6358,
72,
36384,
7949,
851,
1350,
34123,
6399,
12282,
320,
13943,
29940,
851,
8,
79756,
12557,
81781,
51461,
320,
13943,
29940,
851,
696,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
272,
8318,
36384,
93802,
10592,
220,
16,
26,
4815,
272,
8318,
36384,
7949,
851,
1393,
13943,
29940,
851,
1393,
2484,
18155,
4229,
720,
2342,
220,
17,
1393,
338,
220,
19,
1393,
1078,
30837,
2355,
6343,
23421,
14700,
9251,
1159,
710,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
15177,
25598,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
16,
1393,
1835,
220,
4645,
2355,
6343,
23421,
14700,
8184,
2632,
988,
2456,
27243,
56473,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
27243,
56473,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
2626,
56473,
10592,
220,
16,
26,
4815,
2626,
56473,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
394,
220,
17,
1393,
1078,
220,
1484,
2355,
6343,
23421,
14700,
39195,
62,
1959,
64143,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
7720,
15793,
64143,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
18,
1393,
1078,
220,
2397,
2355,
6343,
23421,
14700,
41282,
1426,
1572,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13217,
766,
1572,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
24,
1393,
2342,
220,
19,
2355,
6343,
23421,
14700,
30837,
1596,
81,
265,
1590,
2456,
66,
6829,
25598,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
66,
6829,
25598,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
8175,
26927,
265,
1590,
10592,
220,
16,
26,
4815,
15177,
25598,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
1835,
220,
16,
1393,
1835,
220,
1041,
2355,
6343,
23421,
14700,
67676,
74224,
2456,
19493,
10020,
14327,
851,
31481,
4276,
1808,
345,
6358,
72,
36384,
7949,
851,
31481,
4276,
1808,
345,
80874,
12282,
320,
19493,
10020,
14327,
851,
1350,
34123,
6399,
12282,
320,
6358,
72,
36384,
7949,
851,
8,
79756,
356,
9972,
932,
2177,
62,
32812,
320,
6358,
72,
36384,
7949,
851,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
34941,
14327,
10592,
220,
16,
26,
4815,
34941,
14327,
851,
1393,
6358,
72,
36384,
7949,
851,
720,
504,
220,
17,
1393,
1078,
220,
6069,
2355,
6343,
14711,
16225,
198,
23956,
272,
8318,
5425,
5905,
887,
374,
539,
5552,
311,
904,
13217,
13426,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
272,
8318,
36384,
7949,
851,
4393,
272,
8318,
36384,
93802,
4154,
21752,
19638,
272,
8318,
36384,
7949,
851,
4393,
13217,
766,
1572,
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 Customer_Master_Index (
master_customer_id INTEGER NOT NULL,
cmi_details VARCHAR(255),
PRIMARY KEY (master_customer_id)
)
/*
1 example row:
SELECT * FROM customer_master_index LIMIT 1;
master_customer_id || cmi_details
1 ||Schmitt-Lang
*/
CREATE TABLE CMI_Cross_References (
cmi_cross_ref_id INTEGER NOT NULL,
master_customer_id INTEGER NOT NULL,
source_system_code CHAR(15) NOT NULL,
PRIMARY KEY (cmi_cross_ref_id),
FOREIGN KEY (master_customer_id) REFERENCES Customer_Master_Index (master_customer_id)
)
/*
1 example row:
SELECT * FROM cmi_cross_references LIMIT 1;
cmi_cross_ref_id ||master_customer_id ||source_system_code
2 || 4 || Rent
*/
CREATE TABLE Council_Tax (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM council_tax LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 101
*/
CREATE TABLE Business_Rates (
business_rates_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (business_rates_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM business_rates LIMIT 1;
business_rates_id ||cmi_cross_ref_id
2 || 99
*/
CREATE TABLE Benefits_Overpayments (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM benefits_overpayments LIMIT 1;
council_tax_id ||cmi_cross_ref_id
3 || 65
*/
CREATE TABLE Parking_Fines (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM parking_fines LIMIT 1;
council_tax_id ||cmi_cross_ref_id
9 || 4
*/
CREATE TABLE Rent_Arrears (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM rent_arrears LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 100
*/
CREATE TABLE Electoral_Register (
electoral_register_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (electoral_register_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM electoral_register LIMIT 1;
electoral_register_id ||cmi_cross_ref_id
2 || 83
*/
### Question
Which cmi cross reference id is not related to any parking taxes?
| [query_database(**{'query': 'SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines'})] | ### 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 Customer_Master_Index (
master_customer_id INTEGER NOT NULL,
cmi_details VARCHAR(255),
PRIMARY KEY (master_customer_id)
)
/*
1 example row:
SELECT * FROM customer_master_index LIMIT 1;
master_customer_id || cmi_details
1 ||Schmitt-Lang
*/
CREATE TABLE CMI_Cross_References (
cmi_cross_ref_id INTEGER NOT NULL,
master_customer_id INTEGER NOT NULL,
source_system_code CHAR(15) NOT NULL,
PRIMARY KEY (cmi_cross_ref_id),
FOREIGN KEY (master_customer_id) REFERENCES Customer_Master_Index (master_customer_id)
)
/*
1 example row:
SELECT * FROM cmi_cross_references LIMIT 1;
cmi_cross_ref_id ||master_customer_id ||source_system_code
2 || 4 || Rent
*/
CREATE TABLE Council_Tax (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM council_tax LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 101
*/
CREATE TABLE Business_Rates (
business_rates_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (business_rates_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM business_rates LIMIT 1;
business_rates_id ||cmi_cross_ref_id
2 || 99
*/
CREATE TABLE Benefits_Overpayments (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM benefits_overpayments LIMIT 1;
council_tax_id ||cmi_cross_ref_id
3 || 65
*/
CREATE TABLE Parking_Fines (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM parking_fines LIMIT 1;
council_tax_id ||cmi_cross_ref_id
9 || 4
*/
CREATE TABLE Rent_Arrears (
council_tax_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (council_tax_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM rent_arrears LIMIT 1;
council_tax_id ||cmi_cross_ref_id
1 || 100
*/
CREATE TABLE Electoral_Register (
electoral_register_id INTEGER NOT NULL,
cmi_cross_ref_id INTEGER NOT NULL,
PRIMARY KEY (electoral_register_id),
FOREIGN KEY (cmi_cross_ref_id) REFERENCES CMI_Cross_References (cmi_cross_ref_id)
)
/*
1 example row:
SELECT * FROM electoral_register LIMIT 1;
electoral_register_id ||cmi_cross_ref_id
2 || 83
*/
|
2,662 | [
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,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
38461,
62,
12880,
1,
1495,
345,
1,
4812,
1,
1495,
345,
1,
5451,
14987,
1,
1495,
345,
1,
5966,
14987,
1,
1495,
345,
1,
2903,
3659,
62229,
1,
528,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
38461,
62,
12880,
1393,
692,
10067,
1393,
5451,
14987,
1393,
5966,
14987,
1393,
2903,
3659,
62229,
720,
996,
220,
16,
1393,
257,
12531,
1393,
39,
336,
74,
1037,
220,
2166,
65808,
438,
309,
1393,
415,
220,
1049,
15,
1393,
257,
220,
1049,
16,
1393,
1078,
220,
20,
2355,
6343,
23421,
14700,
330,
3875,
1,
2456,
1,
9480,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
31912,
488,
1,
1495,
345,
1,
17166,
1,
1495,
345,
80874,
12282,
3573,
9480,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3552,
10592,
220,
16,
26,
4815,
16492,
3533,
1393,
996,
4076,
1393,
220,
5165,
488,
1393,
17166,
720,
415,
220,
16,
1393,
83489,
6187,
68,
1393,
23175,
4273,
1393,
220,
3391,
2355,
6343,
23421,
14700,
330,
34057,
13144,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9480,
3533,
1,
528,
345,
1,
3957,
46205,
1265,
28688,
2812,
1,
1845,
345,
80874,
12282,
3573,
38461,
3533,
2247,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
9480,
3533,
909,
79756,
1595,
3875,
63,
446,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
38461,
3533,
909,
79756,
1595,
34057,
63,
446,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
13144,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
9480,
3533,
1393,
3957,
46205,
1265,
28688,
2812,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
394,
350,
2355,
6343,
14711,
16225,
198,
861,
279,
22100,
315,
9875,
304,
36488,
2015,
315,
1396,
315,
18939,
13,
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
8722,
62,
12880,
4393,
4717,
15888,
7866,
5742,
3659,
62229,
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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
### Question
List the themes of parties in ascending order of number of hosts.
| [query_database(**{'query': 'SELECT Party_Theme FROM party ORDER BY Number_of_hosts 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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
|
2,666 | [
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,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
38461,
62,
12880,
1,
1495,
345,
1,
4812,
1,
1495,
345,
1,
5451,
14987,
1,
1495,
345,
1,
5966,
14987,
1,
1495,
345,
1,
2903,
3659,
62229,
1,
528,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
38461,
62,
12880,
1393,
692,
10067,
1393,
5451,
14987,
1393,
5966,
14987,
1393,
2903,
3659,
62229,
720,
996,
220,
16,
1393,
257,
12531,
1393,
39,
336,
74,
1037,
220,
2166,
65808,
438,
309,
1393,
415,
220,
1049,
15,
1393,
257,
220,
1049,
16,
1393,
1078,
220,
20,
2355,
6343,
23421,
14700,
330,
3875,
1,
2456,
1,
9480,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
31912,
488,
1,
1495,
345,
1,
17166,
1,
1495,
345,
80874,
12282,
3573,
9480,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3552,
10592,
220,
16,
26,
4815,
16492,
3533,
1393,
996,
4076,
1393,
220,
5165,
488,
1393,
17166,
720,
415,
220,
16,
1393,
83489,
6187,
68,
1393,
23175,
4273,
1393,
220,
3391,
2355,
6343,
23421,
14700,
330,
34057,
13144,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9480,
3533,
1,
528,
345,
1,
3957,
46205,
1265,
28688,
2812,
1,
1845,
345,
80874,
12282,
3573,
38461,
3533,
2247,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
9480,
3533,
909,
79756,
1595,
3875,
63,
446,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
38461,
3533,
909,
79756,
1595,
34057,
63,
446,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
13144,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
9480,
3533,
1393,
3957,
46205,
1265,
28688,
2812,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
394,
350,
2355,
6343,
14711,
16225,
198,
7968,
279,
1176,
1060,
323,
1566,
1060,
315,
9875,
449,
7057,
330,
26208,
1,
477,
330,
6777,
49450,
2508,
3343,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5629,
14987,
1174,
220,
8155,
14987,
4393,
4717,
5401,
8722,
62,
12880,
220,
284,
220,
330,
26208,
1,
2794,
8722,
62,
12880,
220,
284,
220,
330,
6777,
49450,
2508,
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,
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5629,
14987,
1174,
220,
8155,
14987,
4393,
4717,
5401,
8722,
62,
12880,
220,
284,
220,
330,
26208,
1,
2794,
8722,
62,
12880,
220,
284,
220,
330,
6777,
49450,
2508,
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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
### Question
Show the first year and last year of parties with theme "Spring" or "Teqnology".
| [query_database(**{'query': 'SELECT First_year , Last_year FROM party WHERE Party_Theme = "Spring" OR Party_Theme = "Teqnology"'})] | ### 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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
|
2,670 | [
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,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
38461,
62,
12880,
1,
1495,
345,
1,
4812,
1,
1495,
345,
1,
5451,
14987,
1,
1495,
345,
1,
5966,
14987,
1,
1495,
345,
1,
2903,
3659,
62229,
1,
528,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
38461,
62,
12880,
1393,
692,
10067,
1393,
5451,
14987,
1393,
5966,
14987,
1393,
2903,
3659,
62229,
720,
996,
220,
16,
1393,
257,
12531,
1393,
39,
336,
74,
1037,
220,
2166,
65808,
438,
309,
1393,
415,
220,
1049,
15,
1393,
257,
220,
1049,
16,
1393,
1078,
220,
20,
2355,
6343,
23421,
14700,
330,
3875,
1,
2456,
1,
9480,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
31912,
488,
1,
1495,
345,
1,
17166,
1,
1495,
345,
80874,
12282,
3573,
9480,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3552,
10592,
220,
16,
26,
4815,
16492,
3533,
1393,
996,
4076,
1393,
220,
5165,
488,
1393,
17166,
720,
415,
220,
16,
1393,
83489,
6187,
68,
1393,
23175,
4273,
1393,
220,
3391,
2355,
6343,
23421,
14700,
330,
34057,
13144,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9480,
3533,
1,
528,
345,
1,
3957,
46205,
1265,
28688,
2812,
1,
1845,
345,
80874,
12282,
3573,
38461,
3533,
2247,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
9480,
3533,
909,
79756,
1595,
3875,
63,
446,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
38461,
3533,
909,
79756,
1595,
34057,
63,
446,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
13144,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
9480,
3533,
1393,
3957,
46205,
1265,
28688,
2812,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
394,
350,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
3813,
315,
279,
4717,
449,
279,
1455,
18939,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
66683,
4393,
4717,
15888,
7866,
5742,
3659,
62229,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
66683,
4393,
4717,
15888,
7866,
5742,
3659,
62229,
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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
### Question
What is the location of the party with the most hosts?
| [query_database(**{'query': 'SELECT LOCATION FROM party ORDER BY Number_of_hosts 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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
|
2,674 | [
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,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
38461,
62,
12880,
1,
1495,
345,
1,
4812,
1,
1495,
345,
1,
5451,
14987,
1,
1495,
345,
1,
5966,
14987,
1,
1495,
345,
1,
2903,
3659,
62229,
1,
528,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
38461,
62,
12880,
1393,
692,
10067,
1393,
5451,
14987,
1393,
5966,
14987,
1393,
2903,
3659,
62229,
720,
996,
220,
16,
1393,
257,
12531,
1393,
39,
336,
74,
1037,
220,
2166,
65808,
438,
309,
1393,
415,
220,
1049,
15,
1393,
257,
220,
1049,
16,
1393,
1078,
220,
20,
2355,
6343,
23421,
14700,
330,
3875,
1,
2456,
1,
9480,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
31912,
488,
1,
1495,
345,
1,
17166,
1,
1495,
345,
80874,
12282,
3573,
9480,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3552,
10592,
220,
16,
26,
4815,
16492,
3533,
1393,
996,
4076,
1393,
220,
5165,
488,
1393,
17166,
720,
415,
220,
16,
1393,
83489,
6187,
68,
1393,
23175,
4273,
1393,
220,
3391,
2355,
6343,
23421,
14700,
330,
34057,
13144,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9480,
3533,
1,
528,
345,
1,
3957,
46205,
1265,
28688,
2812,
1,
1845,
345,
80874,
12282,
3573,
38461,
3533,
2247,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
9480,
3533,
909,
79756,
1595,
3875,
63,
446,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
38461,
3533,
909,
79756,
1595,
34057,
63,
446,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
13144,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
9480,
3533,
1393,
3957,
46205,
1265,
28688,
2812,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
394,
350,
2355,
6343,
14711,
16225,
198,
7968,
279,
1455,
4279,
59343,
315,
18939,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5165,
488,
4393,
45678,
27968,
7866,
5165,
488,
15888,
7866,
24945,
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,
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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5165,
488,
4393,
45678,
27968,
7866,
5165,
488,
15888,
7866,
24945,
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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
### Question
Show the most common nationality of hosts.
| [query_database(**{'query': 'SELECT Nationality FROM HOST GROUP BY Nationality 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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
|
2,678 | [
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,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
38461,
62,
12880,
1,
1495,
345,
1,
4812,
1,
1495,
345,
1,
5451,
14987,
1,
1495,
345,
1,
5966,
14987,
1,
1495,
345,
1,
2903,
3659,
62229,
1,
528,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
38461,
62,
12880,
1393,
692,
10067,
1393,
5451,
14987,
1393,
5966,
14987,
1393,
2903,
3659,
62229,
720,
996,
220,
16,
1393,
257,
12531,
1393,
39,
336,
74,
1037,
220,
2166,
65808,
438,
309,
1393,
415,
220,
1049,
15,
1393,
257,
220,
1049,
16,
1393,
1078,
220,
20,
2355,
6343,
23421,
14700,
330,
3875,
1,
2456,
1,
9480,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
31912,
488,
1,
1495,
345,
1,
17166,
1,
1495,
345,
80874,
12282,
3573,
9480,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3552,
10592,
220,
16,
26,
4815,
16492,
3533,
1393,
996,
4076,
1393,
220,
5165,
488,
1393,
17166,
720,
415,
220,
16,
1393,
83489,
6187,
68,
1393,
23175,
4273,
1393,
220,
3391,
2355,
6343,
23421,
14700,
330,
34057,
13144,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9480,
3533,
1,
528,
345,
1,
3957,
46205,
1265,
28688,
2812,
1,
1845,
345,
80874,
12282,
3573,
38461,
3533,
2247,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
9480,
3533,
909,
79756,
1595,
3875,
63,
446,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
38461,
3533,
909,
79756,
1595,
34057,
63,
446,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
13144,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
9480,
3533,
1393,
3957,
46205,
1265,
28688,
2812,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
394,
350,
2355,
6343,
14711,
16225,
198,
7968,
279,
22100,
315,
9875,
323,
279,
5144,
315,
279,
4717,
18939,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
1087,
6862,
62,
12880,
1174,
220,
350,
17,
3040,
4393,
4717,
13144,
5871,
350,
16,
13369,
45678,
5871,
350,
17,
6328,
350,
16,
30940,
3533,
220,
284,
220,
350,
17,
30940,
3533,
13369,
4717,
5871,
350,
18,
6328,
350,
16,
1087,
6862,
3533,
220,
284,
220,
350,
18,
1087,
6862,
3533,
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,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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
1087,
6862,
62,
12880,
1174,
220,
350,
17,
3040,
4393,
4717,
13144,
5871,
350,
16,
13369,
45678,
5871,
350,
17,
6328,
350,
16,
30940,
3533,
220,
284,
220,
350,
17,
30940,
3533,
13369,
4717,
5871,
350,
18,
6328,
350,
16,
1087,
6862,
3533,
220,
284,
220,
350,
18,
1087,
6862,
3533,
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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
### Question
Show the themes of parties and the names of the party hosts.
| [query_database(**{'query': 'SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
|
2,682 | [
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,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
38461,
62,
12880,
1,
1495,
345,
1,
4812,
1,
1495,
345,
1,
5451,
14987,
1,
1495,
345,
1,
5966,
14987,
1,
1495,
345,
1,
2903,
3659,
62229,
1,
528,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
38461,
62,
12880,
1393,
692,
10067,
1393,
5451,
14987,
1393,
5966,
14987,
1393,
2903,
3659,
62229,
720,
996,
220,
16,
1393,
257,
12531,
1393,
39,
336,
74,
1037,
220,
2166,
65808,
438,
309,
1393,
415,
220,
1049,
15,
1393,
257,
220,
1049,
16,
1393,
1078,
220,
20,
2355,
6343,
23421,
14700,
330,
3875,
1,
2456,
1,
9480,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
31912,
488,
1,
1495,
345,
1,
17166,
1,
1495,
345,
80874,
12282,
3573,
9480,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3552,
10592,
220,
16,
26,
4815,
16492,
3533,
1393,
996,
4076,
1393,
220,
5165,
488,
1393,
17166,
720,
415,
220,
16,
1393,
83489,
6187,
68,
1393,
23175,
4273,
1393,
220,
3391,
2355,
6343,
23421,
14700,
330,
34057,
13144,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9480,
3533,
1,
528,
345,
1,
3957,
46205,
1265,
28688,
2812,
1,
1845,
345,
80874,
12282,
3573,
38461,
3533,
2247,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
9480,
3533,
909,
79756,
1595,
3875,
63,
446,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
38461,
3533,
909,
79756,
1595,
34057,
63,
446,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
13144,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
9480,
3533,
1393,
3957,
46205,
1265,
28688,
2812,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
394,
350,
2355,
6343,
14711,
16225,
198,
7968,
279,
10687,
315,
9875,
449,
18939,
9191,
1109,
220,
1135,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
4616,
4393,
4717,
13144,
5871,
350,
16,
13369,
45678,
5871,
350,
17,
6328,
350,
16,
30940,
3533,
220,
284,
220,
350,
17,
30940,
3533,
13369,
4717,
5871,
350,
18,
6328,
350,
16,
1087,
6862,
3533,
220,
284,
220,
350,
18,
1087,
6862,
3533,
5401,
350,
17,
93775,
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,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4616,
4393,
4717,
13144,
5871,
350,
16,
13369,
45678,
5871,
350,
17,
6328,
350,
16,
30940,
3533,
220,
284,
220,
350,
17,
30940,
3533,
13369,
4717,
5871,
350,
18,
6328,
350,
16,
1087,
6862,
3533,
220,
284,
220,
350,
18,
1087,
6862,
3533,
5401,
350,
17,
93775,
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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
### Question
Show the locations of parties with hosts older than 50.
| [query_database(**{'query': 'SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
|
2,686 | [
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,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
38461,
62,
12880,
1,
1495,
345,
1,
4812,
1,
1495,
345,
1,
5451,
14987,
1,
1495,
345,
1,
5966,
14987,
1,
1495,
345,
1,
2903,
3659,
62229,
1,
528,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
38461,
62,
12880,
1393,
692,
10067,
1393,
5451,
14987,
1393,
5966,
14987,
1393,
2903,
3659,
62229,
720,
996,
220,
16,
1393,
257,
12531,
1393,
39,
336,
74,
1037,
220,
2166,
65808,
438,
309,
1393,
415,
220,
1049,
15,
1393,
257,
220,
1049,
16,
1393,
1078,
220,
20,
2355,
6343,
23421,
14700,
330,
3875,
1,
2456,
1,
9480,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
31912,
488,
1,
1495,
345,
1,
17166,
1,
1495,
345,
80874,
12282,
3573,
9480,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3552,
10592,
220,
16,
26,
4815,
16492,
3533,
1393,
996,
4076,
1393,
220,
5165,
488,
1393,
17166,
720,
415,
220,
16,
1393,
83489,
6187,
68,
1393,
23175,
4273,
1393,
220,
3391,
2355,
6343,
23421,
14700,
330,
34057,
13144,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9480,
3533,
1,
528,
345,
1,
3957,
46205,
1265,
28688,
2812,
1,
1845,
345,
80874,
12282,
3573,
38461,
3533,
2247,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
9480,
3533,
909,
79756,
1595,
3875,
63,
446,
9480,
3533,
4561,
34123,
6399,
12282,
3573,
38461,
3533,
909,
79756,
1595,
34057,
63,
446,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
13144,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
9480,
3533,
1393,
3957,
46205,
1265,
28688,
2812,
720,
996,
220,
16,
1393,
415,
220,
16,
1393,
394,
350,
2355,
6343,
14711,
16225,
198,
7968,
279,
836,
323,
279,
59343,
315,
279,
24417,
3552,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
4076,
1174,
220,
5165,
488,
4393,
45678,
15888,
7866,
13381,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4076,
1174,
220,
5165,
488,
4393,
45678,
15888,
7866,
13381,
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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
### Question
Show the name and the nationality of the oldest host.
| [query_database(**{'query': 'SELECT Name , Nationality FROM HOST ORDER BY Age 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 "party" (
"Party_ID" int,
"Party_Theme" text,
"Location" text,
"First_year" text,
"Last_year" text,
"Number_of_hosts" int,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID ||Party_Theme || Location ||First_year ||Last_year ||Number_of_hosts
1 || Spring ||Hemkade 48 Zaandam || 2000 || 2001 || 5
*/
CREATE TABLE "host" (
"Host_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
PRIMARY KEY ("Host_ID")
)
/*
1 example row:
SELECT * FROM host LIMIT 1;
Host_ID || Name || Nationality ||Age
1 ||Austin Daye ||United States || 43
*/
CREATE TABLE "party_host" (
"Party_ID" int,
"Host_ID" int,
"Is_Main_in_Charge" bool,
PRIMARY KEY ("Party_ID","Host_ID"),
FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
)
/*
1 example row:
SELECT * FROM party_host LIMIT 1;
Party_ID ||Host_ID ||Is_Main_in_Charge
1 || 1 || T
*/
|
2,691 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
2568,
279,
1396,
315,
13918,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
5654,
66360,
60,
128009
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
5654,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
Count the number of regions.
| [query_database(**{'query': 'SELECT count(*) FROM region'})] | ### 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,695 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
279,
13918,
304,
84398,
2015,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5654,
1292,
4393,
5654,
15888,
7866,
5654,
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,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
5654,
1292,
4393,
5654,
15888,
7866,
5654,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What are the names of the regions in alphabetical order?
| [query_database(**{'query': 'SELECT region_name FROM region ORDER BY region_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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,699 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
2568,
279,
1396,
315,
44583,
304,
902,
520,
3325,
220,
16,
1732,
8636,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
13766,
5401,
5742,
25617,
27382,
220,
871,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
13766,
5401,
5742,
25617,
27382,
220,
871,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
Count the number of storms in which at least 1 person died.
| [query_database(**{'query': 'SELECT count(*) FROM storm WHERE Number_Deaths > 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,703 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
5578,
323,
7340,
5674,
304,
11990,
369,
44583,
430,
1047,
264,
1973,
4732,
927,
220,
1041,
15,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
20291,
1528,
9814,
722,
91387,
13775,
35,
8,
1174,
220,
1973,
1528,
9814,
722,
91387,
13775,
35,
8,
4393,
13766,
5401,
1973,
17374,
220,
871,
220,
220,
1041,
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,
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
20291,
1528,
9814,
722,
91387,
13775,
35,
8,
1174,
220,
1973,
1528,
9814,
722,
91387,
13775,
35,
8,
4393,
13766,
5401,
1973,
17374,
220,
871,
220,
220,
1041,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What is the average and maximum damage in millions for storms that had a max speed over 1000?
| [query_database(**{'query': 'SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000'})] | ### 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,707 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
323,
5674,
304,
11990,
369,
44583,
11,
11713,
555,
872,
1973,
25753,
44184,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
836,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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
836,
1174,
220,
5674,
722,
91387,
13775,
35,
4393,
13766,
15888,
7866,
1973,
17374,
16477,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What are the names and damage in millions for storms, ordered by their max speeds descending?
| [query_database(**{'query': 'SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC'})] | ### 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,711 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
13918,
430,
1051,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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5654,
1292,
4393,
5654,
5401,
5654,
851,
4276,
2006,
320,
4963,
5654,
851,
4393,
11754,
21276,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What are the names of regions that were not affected?
| [query_database(**{'query': 'SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region)'})] | ### 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,715 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
4438,
1690,
13918,
1051,
11754,
555,
1855,
13766,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
2710,
1174,
220,
1797,
29771,
4393,
13766,
5871,
350,
16,
13369,
11754,
21276,
5871,
350,
17,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
17,
1258,
494,
851,
27968,
7866,
350,
16,
1258,
494,
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,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1174,
220,
1797,
29771,
4393,
13766,
5871,
350,
16,
13369,
11754,
21276,
5871,
350,
17,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
17,
1258,
494,
851,
27968,
7866,
350,
16,
1258,
494,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
How many regions were affected by each storm?
| [query_database(**{'query': 'SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,719 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
44583,
430,
1550,
539,
7958,
904,
13918,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
836,
4393,
13766,
5401,
13766,
851,
4276,
2006,
320,
4963,
13766,
851,
4393,
11754,
21276,
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,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
836,
4393,
13766,
5401,
13766,
851,
4276,
2006,
320,
4963,
13766,
851,
4393,
11754,
21276,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What are the names of storms that did not affect any regions?
| [query_database(**{'query': 'SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region)'})] | ### 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,723 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
44583,
430,
1550,
539,
7958,
1403,
477,
810,
13918,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
836,
4393,
13766,
4154,
21752,
19638,
350,
16,
2710,
4393,
13766,
5871,
350,
16,
13369,
11754,
21276,
5871,
350,
17,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
17,
1258,
494,
851,
27968,
7866,
350,
16,
1258,
494,
851,
473,
84822,
1797,
29771,
220,
2669,
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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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
836,
4393,
13766,
4154,
21752,
19638,
350,
16,
2710,
4393,
13766,
5871,
350,
16,
13369,
11754,
21276,
5871,
350,
17,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
17,
1258,
494,
851,
27968,
7866,
350,
16,
1258,
494,
851,
473,
84822,
1797,
29771,
220,
2669,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What are the names of storms that did not affect two or more regions?
| [query_database(**{'query': 'SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,727 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
279,
44583,
430,
11754,
35440,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
2710,
4393,
11754,
21276,
5871,
350,
16,
13369,
5654,
5871,
350,
17,
6328,
350,
16,
44076,
851,
220,
284,
220,
350,
17,
44076,
851,
13369,
13766,
5871,
350,
18,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
18,
1258,
494,
851,
5401,
350,
17,
44076,
1292,
220,
284,
220,
364,
24539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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
2710,
4393,
11754,
21276,
5871,
350,
16,
13369,
5654,
5871,
350,
17,
6328,
350,
16,
44076,
851,
220,
284,
220,
350,
17,
44076,
851,
13369,
13766,
5871,
350,
18,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
18,
1258,
494,
851,
5401,
350,
17,
44076,
1292,
220,
284,
220,
364,
24539,
4075,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What are the names of the storms that affected Denmark?
| [query_database(**{'query': 'SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark''})] | ### 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,731 | [
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,
27511,
1,
2456,
1,
35391,
3533,
1,
528,
345,
1,
678,
1,
1495,
345,
1,
56338,
13226,
1,
1495,
345,
1,
6102,
17374,
1,
528,
345,
1,
25246,
722,
91387,
13775,
35,
1,
1972,
345,
1,
2903,
25617,
27382,
1,
528,
345,
80874,
12282,
3573,
35391,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
13766,
10592,
220,
16,
26,
4815,
22620,
3533,
1393,
678,
1393,
56338,
13226,
1393,
6102,
17374,
1393,
25246,
722,
91387,
13775,
35,
1393,
2903,
25617,
27382,
720,
996,
220,
16,
1393,
3861,
1393,
3297,
777,
4235,
11356,
914,
1393,
415,
220,
22101,
1393,
2342,
220,
1032,
13,
15,
1393,
310,
220,
15,
2355,
6343,
23421,
14700,
330,
4030,
1,
2456,
63,
14422,
851,
63,
528,
345,
63,
14422,
4229,
63,
1495,
345,
63,
14422,
1292,
63,
1495,
345,
80874,
12282,
3573,
14422,
851,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5654,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
14422,
4229,
1393,
14422,
1292,
720,
286,
220,
16,
1393,
260,
20479,
1393,
55439,
16083,
9121,
2355,
6343,
23421,
14700,
1595,
32157,
21276,
63,
2456,
63,
14422,
851,
63,
528,
345,
63,
35391,
3533,
63,
528,
345,
63,
2903,
26019,
62,
32157,
63,
1972,
345,
80874,
12282,
29754,
14422,
851,
41281,
35391,
3533,
90846,
34123,
6399,
12282,
29754,
14422,
851,
33981,
79756,
1595,
4030,
63,
5931,
14422,
851,
90846,
34123,
6399,
12282,
29754,
35391,
3533,
33981,
79756,
1595,
27511,
63,
5931,
35391,
3533,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
11754,
21276,
10592,
220,
16,
26,
4815,
17593,
851,
1393,
35391,
3533,
1393,
2903,
26019,
62,
32157,
720,
286,
220,
16,
1393,
996,
220,
16,
1393,
394,
220,
605,
13,
15,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
5144,
315,
13918,
430,
1051,
11754,
555,
279,
13766,
304,
902,
279,
1455,
1274,
8636,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
44076,
1292,
4393,
11754,
21276,
5871,
350,
16,
13369,
5654,
5871,
350,
17,
6328,
350,
16,
44076,
851,
220,
284,
220,
350,
17,
44076,
851,
13369,
13766,
5871,
350,
18,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
18,
1258,
494,
851,
15888,
7866,
350,
18,
32282,
25617,
27382,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
44076,
1292,
4393,
11754,
21276,
5871,
350,
16,
13369,
5654,
5871,
350,
17,
6328,
350,
16,
44076,
851,
220,
284,
220,
350,
17,
44076,
851,
13369,
13766,
5871,
350,
18,
6328,
350,
16,
1258,
494,
851,
220,
284,
220,
350,
18,
1258,
494,
851,
15888,
7866,
350,
18,
32282,
25617,
27382,
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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
### Question
What are the names of regions that were affected by the storm in which the most people died?
| [query_database(**{'query': 'SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths 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 "storm" (
"Storm_ID" int,
"Name" text,
"Dates_active" text,
"Max_speed" int,
"Damage_millions_USD" real,
"Number_Deaths" int,
PRIMARY KEY ("Storm_ID")
)
/*
1 example row:
SELECT * FROM storm LIMIT 1;
Storm_ID ||Name ||Dates_active ||Max_speed ||Damage_millions_USD ||Number_Deaths
1 || One || May19–May25 || 995 || 13.0 || 0
*/
CREATE TABLE "region" (
`Region_id` int,
`Region_code` text,
`Region_name` text,
PRIMARY KEY ("Region_id")
)
/*
1 example row:
SELECT * FROM region LIMIT 1;
Region_id ||Region_code ||Region_name
1 || AF ||Afghanistan
*/
CREATE TABLE `affected_region` (
`Region_id` int,
`Storm_ID` int,
`Number_city_affected` real,
PRIMARY KEY (`Region_id`,`Storm_ID`),
FOREIGN KEY (`Region_id`) REFERENCES `region`(`Region_id`),
FOREIGN KEY (`Storm_ID`) REFERENCES `storm`(`Storm_ID`)
)
/*
1 example row:
SELECT * FROM affected_region LIMIT 1;
Region_id ||Storm_ID ||Number_city_affected
1 || 1 || 10.0
*/
|
2,735 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
2568,
279,
2860,
1396,
315,
31276,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
14189,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
14189,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Count the total number of counties.
| [query_database(**{'query': 'SELECT count(*) FROM 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,738 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
7968,
279,
5578,
7187,
315,
682,
31276,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
20291,
5417,
454,
2987,
8,
4393,
14189,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
5417,
454,
2987,
8,
4393,
14189,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Show the average population of all counties.
| [query_database(**{'query': 'SELECT avg(Population) FROM 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,742 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
7968,
682,
279,
12742,
27536,
369,
16374,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
11182,
4393,
6355,
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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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
11182,
4393,
6355,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Show all the distinct districts for elections.
| [query_database(**{'query': 'SELECT DISTINCT District FROM election'})] | ### 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,746 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
7968,
279,
13685,
505,
9474,
220,
16,
304,
6355,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
41280,
4393,
6355,
5401,
11182,
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,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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
41280,
4393,
6355,
5401,
11182,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Show the delegate from district 1 in election.
| [query_database(**{'query': 'SELECT Delegate FROM election WHERE District = 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,750 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
4438,
1690,
12742,
68140,
527,
1070,
30,
128009,
128006,
78191,
128007,
271,
58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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
24245,
8,
4393,
4717,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
How many distinct governors are there?
| [query_database(**{'query': 'SELECT count(DISTINCT Governor) FROM party'})] | ### 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,755 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
10086,
279,
12742,
1667,
994,
279,
19582,
574,
7086,
330,
36,
747,
354,
3165,
21114,
3343,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
52005,
4393,
4717,
5401,
24245,
220,
284,
220,
330,
36,
747,
354,
3165,
21114,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
52005,
4393,
4717,
5401,
24245,
220,
284,
220,
330,
36,
747,
354,
3165,
21114,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Find the distinct years when the governor was named "Eliot Spitzer".
| [query_database(**{'query': 'SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer"'})] | ### 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,759 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
3923,
527,
279,
13685,
323,
836,
315,
279,
14189,
814,
9352,
311,
11,
369,
1855,
14189,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
9111,
5096,
1174,
220,
350,
16,
6262,
88,
1292,
4393,
14189,
5871,
350,
16,
13369,
6355,
5871,
350,
17,
6328,
350,
16,
6262,
88,
851,
220,
284,
220,
350,
17,
920,
8557,
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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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
9111,
5096,
1174,
220,
350,
16,
6262,
88,
1292,
4393,
14189,
5871,
350,
16,
13369,
6355,
5871,
350,
17,
6328,
350,
16,
6262,
88,
851,
220,
284,
220,
350,
17,
920,
8557,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
What are the delegate and name of the county they belong to, for each county?
| [query_database(**{'query': 'SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District'})] | ### 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,763 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
2568,
279,
1396,
315,
12742,
36159,
889,
527,
505,
31276,
449,
7187,
3485,
220,
2636,
410,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
350,
17,
9111,
5096,
8,
4393,
14189,
5871,
350,
16,
13369,
6355,
5871,
350,
17,
6328,
350,
16,
6262,
88,
851,
220,
284,
220,
350,
17,
920,
8557,
5401,
350,
16,
48524,
2987,
220,
871,
220,
220,
2636,
410,
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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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
350,
17,
9111,
5096,
8,
4393,
14189,
5871,
350,
16,
13369,
6355,
5871,
350,
17,
6328,
350,
16,
6262,
88,
851,
220,
284,
220,
350,
17,
920,
8557,
5401,
350,
16,
48524,
2987,
220,
871,
220,
220,
2636,
410,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Count the number of distinct delegates who are from counties with population above 50000.
| [query_database(**{'query': 'SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000'})] | ### 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,767 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
2520,
1855,
13685,
11,
1505,
279,
5144,
315,
279,
4717,
814,
527,
961,
315,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
9111,
5096,
1174,
220,
350,
17,
1087,
6862,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
For each delegate, find the names of the party they are part of.
| [query_database(**{'query': 'SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,771 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
10086,
279,
9875,
5938,
449,
279,
36159,
505,
9474,
220,
16,
477,
220,
17,
13,
10699,
10434,
439,
55056,
7421,
315,
279,
9875,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
3034,
418,
1496,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
5401,
350,
16,
920,
8557,
220,
284,
220,
220,
16,
2794,
350,
16,
920,
8557,
220,
284,
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,
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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
3034,
418,
1496,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
5401,
350,
16,
920,
8557,
220,
284,
220,
220,
16,
2794,
350,
16,
920,
8557,
220,
284,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?
| [query_database(**{'query': 'SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,776 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
7968,
279,
836,
315,
1855,
4717,
323,
279,
12435,
1396,
315,
36159,
505,
430,
4717,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
1087,
6862,
1174,
220,
24945,
29771,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
27968,
7866,
350,
16,
1087,
6862,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1087,
6862,
1174,
220,
24945,
29771,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
27968,
7866,
350,
16,
1087,
6862,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Show the name of each party and the corresponding number of delegates from that party.
| [query_database(**{'query': 'SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party'})] | ### 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,779 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
10442,
279,
5144,
315,
682,
31276,
304,
36488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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6406,
1292,
4393,
14189,
15888,
7866,
40629,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Sort the names of all counties in ascending order of population.
| [query_database(**{'query': 'SELECT County_name FROM county ORDER BY Population 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,783 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
23956,
14189,
706,
279,
7928,
7187,
30,
21335,
757,
279,
836,
315,
279,
14189,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
6406,
1292,
4393,
14189,
15888,
7866,
40629,
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,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6406,
1292,
4393,
14189,
15888,
7866,
40629,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Which county has the largest population? Give me the name of the county.
| [query_database(**{'query': 'SELECT County_name FROM county ORDER BY Population 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,787 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
23956,
31276,
617,
1403,
477,
810,
36159,
30,
21335,
757,
279,
14189,
5144,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
6262,
88,
1292,
4393,
14189,
5871,
350,
16,
13369,
6355,
5871,
350,
17,
6328,
350,
16,
6262,
88,
851,
220,
284,
220,
350,
17,
920,
8557,
27968,
7866,
350,
16,
6262,
88,
851,
473,
84822,
24945,
29771,
220,
2669,
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,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,
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
6262,
88,
1292,
4393,
14189,
5871,
350,
16,
13369,
6355,
5871,
350,
17,
6328,
350,
16,
6262,
88,
851,
220,
284,
220,
350,
17,
920,
8557,
27968,
7866,
350,
16,
6262,
88,
851,
473,
84822,
24945,
29771,
220,
2669,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Which counties have two or more delegates? Give me the county names.
| [query_database(**{'query': 'SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,791 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
23956,
4717,
706,
279,
7928,
1396,
315,
36159,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
1087,
6862,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
27968,
7866,
350,
16,
1087,
6862,
15888,
7866,
24945,
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,
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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
1087,
6862,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
27968,
7866,
350,
16,
1087,
6862,
15888,
7866,
24945,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Which party has the largest number of delegates?
| [query_database(**{'query': 'SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,795 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
23956,
1274,
84450,
439,
55056,
1496,
1455,
14134,
30,
21335,
757,
279,
836,
315,
279,
1732,
323,
279,
11900,
1797,
13,
128009,
128006,
78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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1219,
418,
1496,
1174,
220,
24945,
29771,
4393,
4717,
27968,
7866,
1219,
418,
1496,
15888,
7866,
24945,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.
| [query_database(**{'query': 'SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,799 | [
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,
66026,
1,
2456,
1,
69994,
22304,
1,
528,
345,
1,
69994,
1292,
1,
1495,
345,
1,
54471,
1,
1972,
345,
1,
32147,
4229,
1,
1495,
345,
80874,
12282,
3573,
69994,
22304,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
14189,
10592,
220,
16,
26,
4815,
6406,
22304,
1393,
69994,
1292,
1393,
54471,
1393,
32147,
4229,
720,
286,
220,
16,
1393,
257,
20462,
1393,
256,
220,
8848,
410,
13,
15,
1393,
257,
423,
1691,
2355,
6343,
23421,
14700,
330,
34057,
1,
2456,
1,
38461,
3533,
1,
528,
345,
1,
9679,
1,
1972,
345,
1,
38461,
1,
1495,
345,
1,
78706,
269,
1,
1495,
345,
74730,
648,
38357,
2712,
6846,
269,
1,
1495,
345,
1,
1110,
418,
1496,
1,
1495,
345,
1,
10673,
9617,
2712,
18958,
1,
1495,
345,
1,
2078,
1117,
32223,
1,
1495,
345,
80874,
12282,
3573,
38461,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
4717,
10592,
220,
16,
26,
4815,
8722,
3533,
1393,
220,
9941,
1393,
257,
8722,
1393,
257,
24245,
1393,
77591,
38357,
2712,
6846,
269,
1393,
1110,
418,
1496,
1393,
10673,
9617,
2712,
18958,
1393,
415,
2326,
1117,
32223,
720,
996,
220,
16,
1393,
2550,
23,
13,
15,
1393,
90999,
1393,
37659,
79763,
606,
1393,
257,
56786,
9454,
301,
1393,
77264,
4584,
7368,
1393,
256,
34362,
354,
3165,
21114,
1393,
54567,
65771,
2355,
6343,
23421,
14700,
330,
62572,
1,
2456,
78299,
1191,
3533,
1,
528,
345,
1,
2568,
552,
62,
66843,
291,
1,
1495,
345,
1,
48940,
1,
528,
345,
1,
9566,
1,
1495,
345,
1,
38461,
1,
528,
345,
1,
5451,
2135,
2258,
1,
1972,
345,
1,
34541,
6684,
1,
1495,
345,
80874,
12282,
3573,
36,
1191,
3533,
4561,
34123,
6399,
12282,
29754,
38461,
33981,
79756,
1595,
34057,
63,
5931,
38461,
3533,
90846,
34123,
6399,
12282,
29754,
48940,
33981,
79756,
1595,
66026,
63,
5931,
69994,
22304,
25158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
6355,
10592,
220,
16,
26,
4815,
26838,
3533,
1393,
2568,
552,
62,
66843,
291,
1393,
48940,
1393,
504,
41280,
1393,
38461,
1393,
5451,
2135,
2258,
1393,
257,
10554,
720,
692,
220,
16,
1393,
1835,
220,
2545,
13,
16,
220,
24,
32,
1393,
996,
220,
16,
1393,
33,
988,
11,
480,
607,
473,
13,
480,
607,
473,
13,
74962,
1393,
262,
220,
16,
1393,
996,
220,
1049,
17,
13,
15,
1393,
2213,
6291,
811,
2355,
6343,
14711,
16225,
198,
23956,
9875,
617,
36159,
304,
2225,
279,
330,
2213,
6291,
811,
1,
13093,
323,
279,
330,
36,
32107,
58364,
1,
13093,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
1087,
6862,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
5401,
350,
16,
54136,
6684,
220,
284,
220,
330,
2213,
6291,
811,
1,
30442,
937,
1182,
19638,
350,
17,
1087,
6862,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
5401,
350,
16,
54136,
6684,
220,
284,
220,
330,
36,
32107,
58364,
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,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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
1087,
6862,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
5401,
350,
16,
54136,
6684,
220,
284,
220,
330,
2213,
6291,
811,
1,
30442,
937,
1182,
19638,
350,
17,
1087,
6862,
4393,
6355,
5871,
350,
16,
13369,
4717,
5871,
350,
17,
6328,
350,
16,
1087,
6862,
220,
284,
220,
350,
17,
1087,
6862,
3533,
5401,
350,
16,
54136,
6684,
220,
284,
220,
330,
36,
32107,
58364,
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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
### Question
Which parties have delegates in both the "Appropriations" committee and the "Economic Matters" committee?
| [query_database(**{'query': 'SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters"'})] | ### 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 "county" (
"County_Id" int,
"County_name" text,
"Population" real,
"Zip_code" text,
PRIMARY KEY ("County_Id")
)
/*
1 example row:
SELECT * FROM county LIMIT 1;
County_Id ||County_name ||Population ||Zip_code
1 || Howard || 21000.0 || D21
*/
CREATE TABLE "party" (
"Party_ID" int,
"Year" real,
"Party" text,
"Governor" text,
"Lieutenant_Governor" text,
"Comptroller" text,
"Attorney_General" text,
"US_Senate" text,
PRIMARY KEY ("Party_ID")
)
/*
1 example row:
SELECT * FROM party LIMIT 1;
Party_ID || Year || Party || Governor ||Lieutenant_Governor ||Comptroller ||Attorney_General || US_Senate
1 ||1998.0 ||Democratic ||Peter Vallone || Sandra Frankel ||Carl McCall || Eliot Spitzer ||Charles Schumer
*/
CREATE TABLE "election" (
"Election_ID" int,
"Counties_Represented" text,
"District" int,
"Delegate" text,
"Party" int,
"First_Elected" real,
"Committee" text,
PRIMARY KEY ("Election_ID"),
FOREIGN KEY (`Party`) REFERENCES `party`(`Party_ID`),
FOREIGN KEY (`District`) REFERENCES `county`(`County_Id`)
)
/*
1 example row:
SELECT * FROM election LIMIT 1;
Election_ID ||Counties_Represented ||District || Delegate ||Party ||First_Elected || Committee
1 || 09.1 9A || 1 ||Bates, Gail H. Gail H. Bates || 1 || 2002.0 ||Appropriations
*/
|
2,803 | [
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,
3163,
1,
2456,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
1956,
1,
1495,
345,
262,
330,
91236,
1,
1495,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
1585,
82897,
30819,
1,
528,
345,
262,
38567,
12282,
3573,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1567,
10592,
220,
16,
26,
4815,
3749,
3533,
1393,
1881,
2696,
1393,
256,
69460,
1393,
1733,
4076,
1393,
1585,
82897,
30819,
720,
996,
220,
16,
1393,
1032,
6664,
220,
1049,
23,
1393,
12331,
24893,
1393,
46,
14163,
689,
11871,
5377,
1251,
1393,
310,
220,
23467,
15,
2355,
6343,
23421,
14700,
330,
43618,
380,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
31912,
488,
1,
1495,
345,
262,
330,
17166,
1,
1495,
345,
262,
330,
55519,
82201,
1,
528,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
23672,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1835,
4076,
1393,
31912,
488,
1393,
17166,
1393,
55519,
82201,
720,
310,
220,
16,
1393,
21364,
9339,
4593,
485,
6572,
1393,
262,
9635,
1393,
220,
1806,
1393,
1881,
220,
605,
2355,
6343,
23421,
14700,
330,
10189,
15157,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
6919,
14045,
1,
1495,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
2247,
1585,
3533,
4561,
262,
82456,
12282,
3573,
43618,
380,
3533,
909,
79756,
1595,
43618,
380,
63,
446,
43618,
380,
3533,
4561,
262,
82456,
12282,
3573,
1585,
3533,
909,
79756,
1595,
3163,
63,
446,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3754,
15157,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1585,
3533,
1393,
6919,
14045,
720,
310,
220,
16,
1393,
996,
220,
18,
1393,
8130,
287,
2355,
6343,
14711,
16225,
198,
861,
279,
5144,
315,
23348,
304,
36488,
2015,
315,
1667,
3318,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
4076,
4393,
23672,
15888,
7866,
23116,
82201,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4076,
4393,
23672,
15888,
7866,
23116,
82201,
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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
### Question
List the names of journalists in ascending order of years working.
| [query_database(**{'query': 'SELECT Name FROM journalist ORDER BY Years_working 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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
|
2,807 | [
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,
3163,
1,
2456,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
1956,
1,
1495,
345,
262,
330,
91236,
1,
1495,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
1585,
82897,
30819,
1,
528,
345,
262,
38567,
12282,
3573,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1567,
10592,
220,
16,
26,
4815,
3749,
3533,
1393,
1881,
2696,
1393,
256,
69460,
1393,
1733,
4076,
1393,
1585,
82897,
30819,
720,
996,
220,
16,
1393,
1032,
6664,
220,
1049,
23,
1393,
12331,
24893,
1393,
46,
14163,
689,
11871,
5377,
1251,
1393,
310,
220,
23467,
15,
2355,
6343,
23421,
14700,
330,
43618,
380,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
31912,
488,
1,
1495,
345,
262,
330,
17166,
1,
1495,
345,
262,
330,
55519,
82201,
1,
528,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
23672,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1835,
4076,
1393,
31912,
488,
1393,
17166,
1393,
55519,
82201,
720,
310,
220,
16,
1393,
21364,
9339,
4593,
485,
6572,
1393,
262,
9635,
1393,
220,
1806,
1393,
1881,
220,
605,
2355,
6343,
23421,
14700,
330,
10189,
15157,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
6919,
14045,
1,
1495,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
2247,
1585,
3533,
4561,
262,
82456,
12282,
3573,
43618,
380,
3533,
909,
79756,
1595,
43618,
380,
63,
446,
43618,
380,
3533,
4561,
262,
82456,
12282,
3573,
1585,
3533,
909,
79756,
1595,
3163,
63,
446,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3754,
15157,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1585,
3533,
1393,
6919,
14045,
720,
310,
220,
16,
1393,
996,
220,
18,
1393,
8130,
287,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
59343,
315,
279,
23672,
449,
279,
7928,
1396,
315,
1667,
3318,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5165,
488,
4393,
23672,
15888,
7866,
23116,
82201,
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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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5165,
488,
4393,
23672,
15888,
7866,
23116,
82201,
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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
### Question
What is the nationality of the journalist with the largest number of years working?
| [query_database(**{'query': 'SELECT Nationality FROM journalist ORDER BY Years_working 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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
|
2,811 | [
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,
3163,
1,
2456,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
1956,
1,
1495,
345,
262,
330,
91236,
1,
1495,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
1585,
82897,
30819,
1,
528,
345,
262,
38567,
12282,
3573,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1567,
10592,
220,
16,
26,
4815,
3749,
3533,
1393,
1881,
2696,
1393,
256,
69460,
1393,
1733,
4076,
1393,
1585,
82897,
30819,
720,
996,
220,
16,
1393,
1032,
6664,
220,
1049,
23,
1393,
12331,
24893,
1393,
46,
14163,
689,
11871,
5377,
1251,
1393,
310,
220,
23467,
15,
2355,
6343,
23421,
14700,
330,
43618,
380,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
31912,
488,
1,
1495,
345,
262,
330,
17166,
1,
1495,
345,
262,
330,
55519,
82201,
1,
528,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
23672,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1835,
4076,
1393,
31912,
488,
1393,
17166,
1393,
55519,
82201,
720,
310,
220,
16,
1393,
21364,
9339,
4593,
485,
6572,
1393,
262,
9635,
1393,
220,
1806,
1393,
1881,
220,
605,
2355,
6343,
23421,
14700,
330,
10189,
15157,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
6919,
14045,
1,
1495,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
2247,
1585,
3533,
4561,
262,
82456,
12282,
3573,
43618,
380,
3533,
909,
79756,
1595,
43618,
380,
63,
446,
43618,
380,
3533,
4561,
262,
82456,
12282,
3573,
1585,
3533,
909,
79756,
1595,
3163,
63,
446,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3754,
15157,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1585,
3533,
1393,
6919,
14045,
720,
310,
220,
16,
1393,
996,
220,
18,
1393,
8130,
287,
2355,
6343,
14711,
16225,
198,
7968,
279,
13003,
11,
7634,
11,
323,
5144,
315,
4455,
304,
44184,
2015,
315,
279,
28116,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2696,
1174,
220,
4076,
1174,
220,
22150,
4393,
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2696,
1174,
220,
4076,
1174,
220,
22150,
4393,
1567,
15888,
7866,
3749,
82897,
30819,
16477,
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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
### Question
Show the dates, places, and names of events in descending order of the attendance.
| [query_database(**{'query': 'SELECT Date , Name , venue FROM event ORDER BY Event_Attendance DESC'})] | ### 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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
|
2,814 | [
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,
3163,
1,
2456,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
1956,
1,
1495,
345,
262,
330,
91236,
1,
1495,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
1585,
82897,
30819,
1,
528,
345,
262,
38567,
12282,
3573,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1567,
10592,
220,
16,
26,
4815,
3749,
3533,
1393,
1881,
2696,
1393,
256,
69460,
1393,
1733,
4076,
1393,
1585,
82897,
30819,
720,
996,
220,
16,
1393,
1032,
6664,
220,
1049,
23,
1393,
12331,
24893,
1393,
46,
14163,
689,
11871,
5377,
1251,
1393,
310,
220,
23467,
15,
2355,
6343,
23421,
14700,
330,
43618,
380,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
31912,
488,
1,
1495,
345,
262,
330,
17166,
1,
1495,
345,
262,
330,
55519,
82201,
1,
528,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
23672,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1835,
4076,
1393,
31912,
488,
1393,
17166,
1393,
55519,
82201,
720,
310,
220,
16,
1393,
21364,
9339,
4593,
485,
6572,
1393,
262,
9635,
1393,
220,
1806,
1393,
1881,
220,
605,
2355,
6343,
23421,
14700,
330,
10189,
15157,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
6919,
14045,
1,
1495,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
2247,
1585,
3533,
4561,
262,
82456,
12282,
3573,
43618,
380,
3533,
909,
79756,
1595,
43618,
380,
63,
446,
43618,
380,
3533,
4561,
262,
82456,
12282,
3573,
1585,
3533,
909,
79756,
1595,
3163,
63,
446,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3754,
15157,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1585,
3533,
1393,
6919,
14045,
720,
310,
220,
16,
1393,
996,
220,
18,
1393,
8130,
287,
2355,
6343,
14711,
16225,
198,
7968,
279,
5144,
315,
23348,
323,
279,
1396,
315,
4455,
814,
5068,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
18,
3040,
1174,
220,
24945,
29771,
4393,
3754,
15157,
5871,
350,
16,
13369,
1567,
5871,
350,
17,
6328,
350,
16,
7049,
3533,
220,
284,
220,
350,
17,
7049,
3533,
13369,
23672,
5871,
350,
18,
6328,
350,
16,
1190,
5036,
380,
3533,
220,
284,
220,
350,
18,
1190,
5036,
380,
3533,
27968,
7866,
350,
18,
3040,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3040,
1174,
220,
24945,
29771,
4393,
3754,
15157,
5871,
350,
16,
13369,
1567,
5871,
350,
17,
6328,
350,
16,
7049,
3533,
220,
284,
220,
350,
17,
7049,
3533,
13369,
23672,
5871,
350,
18,
6328,
350,
16,
1190,
5036,
380,
3533,
220,
284,
220,
350,
18,
1190,
5036,
380,
3533,
27968,
7866,
350,
18,
3040,
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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
### Question
Show the names of journalists and the number of events they reported.
| [query_database(**{'query': 'SELECT T3.Name , COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
|
2,819 | [
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,
3163,
1,
2456,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
1956,
1,
1495,
345,
262,
330,
91236,
1,
1495,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
1585,
82897,
30819,
1,
528,
345,
262,
38567,
12282,
3573,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
1567,
10592,
220,
16,
26,
4815,
3749,
3533,
1393,
1881,
2696,
1393,
256,
69460,
1393,
1733,
4076,
1393,
1585,
82897,
30819,
720,
996,
220,
16,
1393,
1032,
6664,
220,
1049,
23,
1393,
12331,
24893,
1393,
46,
14163,
689,
11871,
5377,
1251,
1393,
310,
220,
23467,
15,
2355,
6343,
23421,
14700,
330,
43618,
380,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
678,
1,
1495,
345,
262,
330,
31912,
488,
1,
1495,
345,
262,
330,
17166,
1,
1495,
345,
262,
330,
55519,
82201,
1,
528,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
23672,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1835,
4076,
1393,
31912,
488,
1393,
17166,
1393,
55519,
82201,
720,
310,
220,
16,
1393,
21364,
9339,
4593,
485,
6572,
1393,
262,
9635,
1393,
220,
1806,
1393,
1881,
220,
605,
2355,
6343,
23421,
14700,
330,
10189,
15157,
1,
2456,
262,
330,
43618,
380,
3533,
1,
528,
345,
262,
330,
1585,
3533,
1,
528,
345,
262,
330,
6919,
14045,
1,
1495,
345,
262,
38567,
12282,
3573,
43618,
380,
3533,
2247,
1585,
3533,
4561,
262,
82456,
12282,
3573,
43618,
380,
3533,
909,
79756,
1595,
43618,
380,
63,
446,
43618,
380,
3533,
4561,
262,
82456,
12282,
3573,
1585,
3533,
909,
79756,
1595,
3163,
63,
446,
1585,
3533,
1158,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
3754,
15157,
10592,
220,
16,
26,
4815,
23672,
3533,
1393,
1585,
3533,
1393,
6919,
14045,
720,
310,
220,
16,
1393,
996,
220,
18,
1393,
8130,
287,
2355,
6343,
14711,
16225,
198,
861,
279,
1567,
37278,
323,
5144,
430,
617,
279,
1948,
220,
17,
1455,
1396,
315,
1274,
18677,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
22150,
1174,
220,
836,
4393,
1567,
15888,
7866,
3749,
82897,
30819,
16477,
10592,
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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
### Question
List the event venues and names that have the top 2 most number of people attended.
| [query_database(**{'query': 'SELECT venue , name FROM event ORDER BY Event_Attendance DESC LIMIT 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 "event" (
"Event_ID" int,
"Date" text,
"Venue" text,
"Name" text,
"Event_Attendance" int,
PRIMARY KEY ("Event_ID")
)
/*
1 example row:
SELECT * FROM event LIMIT 1;
Event_ID || Date || Venue || Name ||Event_Attendance
1 ||13 October 2008 ||Marathon ||Olympia Games Openning || 6650
*/
CREATE TABLE "journalist" (
"journalist_ID" int,
"Name" text,
"Nationality" text,
"Age" text,
"Years_working" int,
PRIMARY KEY ("journalist_ID")
)
/*
1 example row:
SELECT * FROM journalist LIMIT 1;
journalist_ID || Name ||Nationality ||Age ||Years_working
1 ||Herbert Swindells || England || 37 || 10
*/
CREATE TABLE "news_report" (
"journalist_ID" int,
"Event_ID" int,
"Work_Type" text,
PRIMARY KEY ("journalist_ID","Event_ID"),
FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
)
/*
1 example row:
SELECT * FROM news_report LIMIT 1;
journalist_ID ||Event_ID ||Work_Type
1 || 3 ||Screening
*/
|
2,822 | [
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,
11988,
2456,
286,
800,
84,
926,
286,
31481,
38567,
12282,
345,
286,
445,
678,
286,
38689,
7,
717,
1350,
286,
435,
609,
286,
38689,
7,
717,
1350,
286,
13381,
415,
31481,
345,
286,
6834,
415,
38689,
7,
16,
1350,
286,
17559,
286,
31481,
345,
286,
54432,
415,
31481,
345,
286,
3363,
4229,
262,
38689,
7,
18,
340,
1763,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
43,
678,
1393,
37,
609,
1393,
17166,
1393,
20004,
1393,
35575,
1393,
62091,
1393,
9103,
4229,
720,
220,
1041,
16,
1393,
42985,
1393,
43,
17872,
1393,
220,
972,
1393,
220,
435,
1393,
220,
220,
5067,
1393,
256,
220,
7261,
16,
1393,
415,
70245,
2355,
6343,
23421,
14700,
26568,
2456,
996,
1838,
926,
996,
31481,
38567,
12282,
345,
996,
1838,
678,
257,
38689,
7,
1041,
1350,
996,
9356,
257,
38689,
7,
1041,
1350,
996,
19767,
31481,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
678,
1393,
6663,
9356,
1393,
22940,
720,
262,
220,
16,
1393,
86181,
1393,
15726,
18,
800,
7043,
800,
11,
24899,
11,
14306,
220,
11227,
972,
1393,
257,
220,
18,
2355,
6343,
23421,
14700,
4078,
90455,
2632,
478,
14671,
2456,
996,
1838,
926,
996,
31481,
345,
996,
1838,
93081,
256,
31481,
345,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
1350,
996,
82456,
12282,
7,
1079,
93081,
8,
79756,
26568,
14045,
7,
1079,
93081,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
955,
3659,
33331,
14671,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
93081,
720,
262,
220,
16,
1393,
286,
220,
16,
2355,
6343,
23421,
14700,
26568,
14045,
2456,
996,
1838,
93081,
310,
31481,
38567,
12282,
345,
996,
1838,
40529,
692,
38689,
7,
1272,
1350,
996,
1838,
941,
5116,
256,
38689,
7,
1041,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
1857,
10592,
220,
16,
26,
4815,
1838,
93081,
1393,
1079,
40529,
1393,
1079,
941,
5116,
720,
286,
220,
16,
1393,
256,
67836,
1393,
16778,
267,
1070,
374,
13,
2355,
6343,
23421,
14700,
7811,
1220,
2632,
478,
14671,
2456,
996,
800,
84,
926,
415,
31481,
345,
996,
1838,
926,
415,
31481,
345,
996,
4212,
996,
93692,
345,
996,
3165,
306,
415,
51216,
345,
996,
82456,
12282,
7,
626,
84,
926,
8,
79756,
11988,
7,
626,
84,
926,
1350,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
21728,
33331,
14671,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
1079,
926,
1393,
2342,
4212,
1393,
6540,
306,
720,
220,
1041,
16,
1393,
262,
220,
16,
1393,
679,
22,
12,
605,
12,
2545,
220,
972,
25,
868,
25,
410,
1393,
220,
21,
13,
4331,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
10959,
315,
279,
10960,
86181,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
19767,
4393,
26568,
5401,
1838,
678,
284,
330,
3214,
3195,
5233,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
19767,
4393,
26568,
5401,
1838,
678,
284,
330,
3214,
3195,
5233,
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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
### Question
What is the rating of the restaurant Subway?
| [query_database(**{'query': 'SELECT Rating FROM Restaurant WHERE ResName = "Subway";'})] | ### 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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
|
2,826 | [
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,
11988,
2456,
286,
800,
84,
926,
286,
31481,
38567,
12282,
345,
286,
445,
678,
286,
38689,
7,
717,
1350,
286,
435,
609,
286,
38689,
7,
717,
1350,
286,
13381,
415,
31481,
345,
286,
6834,
415,
38689,
7,
16,
1350,
286,
17559,
286,
31481,
345,
286,
54432,
415,
31481,
345,
286,
3363,
4229,
262,
38689,
7,
18,
340,
1763,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
43,
678,
1393,
37,
609,
1393,
17166,
1393,
20004,
1393,
35575,
1393,
62091,
1393,
9103,
4229,
720,
220,
1041,
16,
1393,
42985,
1393,
43,
17872,
1393,
220,
972,
1393,
220,
435,
1393,
220,
220,
5067,
1393,
256,
220,
7261,
16,
1393,
415,
70245,
2355,
6343,
23421,
14700,
26568,
2456,
996,
1838,
926,
996,
31481,
38567,
12282,
345,
996,
1838,
678,
257,
38689,
7,
1041,
1350,
996,
9356,
257,
38689,
7,
1041,
1350,
996,
19767,
31481,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
678,
1393,
6663,
9356,
1393,
22940,
720,
262,
220,
16,
1393,
86181,
1393,
15726,
18,
800,
7043,
800,
11,
24899,
11,
14306,
220,
11227,
972,
1393,
257,
220,
18,
2355,
6343,
23421,
14700,
4078,
90455,
2632,
478,
14671,
2456,
996,
1838,
926,
996,
31481,
345,
996,
1838,
93081,
256,
31481,
345,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
1350,
996,
82456,
12282,
7,
1079,
93081,
8,
79756,
26568,
14045,
7,
1079,
93081,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
955,
3659,
33331,
14671,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
93081,
720,
262,
220,
16,
1393,
286,
220,
16,
2355,
6343,
23421,
14700,
26568,
14045,
2456,
996,
1838,
93081,
310,
31481,
38567,
12282,
345,
996,
1838,
40529,
692,
38689,
7,
1272,
1350,
996,
1838,
941,
5116,
256,
38689,
7,
1041,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
1857,
10592,
220,
16,
26,
4815,
1838,
93081,
1393,
1079,
40529,
1393,
1079,
941,
5116,
720,
286,
220,
16,
1393,
256,
67836,
1393,
16778,
267,
1070,
374,
13,
2355,
6343,
23421,
14700,
7811,
1220,
2632,
478,
14671,
2456,
996,
800,
84,
926,
415,
31481,
345,
996,
1838,
926,
415,
31481,
345,
996,
4212,
996,
93692,
345,
996,
3165,
306,
415,
51216,
345,
996,
82456,
12282,
7,
626,
84,
926,
8,
79756,
11988,
7,
626,
84,
926,
1350,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
21728,
33331,
14671,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
1079,
926,
1393,
2342,
4212,
1393,
6540,
306,
720,
220,
1041,
16,
1393,
262,
220,
16,
1393,
679,
22,
12,
605,
12,
2545,
220,
972,
25,
868,
25,
410,
1393,
220,
21,
13,
4331,
2355,
6343,
14711,
16225,
198,
3923,
374,
279,
4325,
315,
5575,
39162,
9259,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
13381,
4393,
11988,
5401,
435,
609,
284,
330,
43,
17872,
1,
3651,
445,
609,
284,
330,
42985,
5233,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
13381,
4393,
11988,
5401,
435,
609,
284,
330,
43,
17872,
1,
3651,
445,
609,
284,
330,
42985,
5233,
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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
### Question
What is the age of student Linda Smith?
| [query_database(**{'query': 'SELECT Age FROM Student WHERE Fname = "Linda" AND Lname = "Smith";'})] | ### 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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
|
2,830 | [
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,
11988,
2456,
286,
800,
84,
926,
286,
31481,
38567,
12282,
345,
286,
445,
678,
286,
38689,
7,
717,
1350,
286,
435,
609,
286,
38689,
7,
717,
1350,
286,
13381,
415,
31481,
345,
286,
6834,
415,
38689,
7,
16,
1350,
286,
17559,
286,
31481,
345,
286,
54432,
415,
31481,
345,
286,
3363,
4229,
262,
38689,
7,
18,
340,
1763,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
43,
678,
1393,
37,
609,
1393,
17166,
1393,
20004,
1393,
35575,
1393,
62091,
1393,
9103,
4229,
720,
220,
1041,
16,
1393,
42985,
1393,
43,
17872,
1393,
220,
972,
1393,
220,
435,
1393,
220,
220,
5067,
1393,
256,
220,
7261,
16,
1393,
415,
70245,
2355,
6343,
23421,
14700,
26568,
2456,
996,
1838,
926,
996,
31481,
38567,
12282,
345,
996,
1838,
678,
257,
38689,
7,
1041,
1350,
996,
9356,
257,
38689,
7,
1041,
1350,
996,
19767,
31481,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
678,
1393,
6663,
9356,
1393,
22940,
720,
262,
220,
16,
1393,
86181,
1393,
15726,
18,
800,
7043,
800,
11,
24899,
11,
14306,
220,
11227,
972,
1393,
257,
220,
18,
2355,
6343,
23421,
14700,
4078,
90455,
2632,
478,
14671,
2456,
996,
1838,
926,
996,
31481,
345,
996,
1838,
93081,
256,
31481,
345,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
1350,
996,
82456,
12282,
7,
1079,
93081,
8,
79756,
26568,
14045,
7,
1079,
93081,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
955,
3659,
33331,
14671,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
93081,
720,
262,
220,
16,
1393,
286,
220,
16,
2355,
6343,
23421,
14700,
26568,
14045,
2456,
996,
1838,
93081,
310,
31481,
38567,
12282,
345,
996,
1838,
40529,
692,
38689,
7,
1272,
1350,
996,
1838,
941,
5116,
256,
38689,
7,
1041,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
1857,
10592,
220,
16,
26,
4815,
1838,
93081,
1393,
1079,
40529,
1393,
1079,
941,
5116,
720,
286,
220,
16,
1393,
256,
67836,
1393,
16778,
267,
1070,
374,
13,
2355,
6343,
23421,
14700,
7811,
1220,
2632,
478,
14671,
2456,
996,
800,
84,
926,
415,
31481,
345,
996,
1838,
926,
415,
31481,
345,
996,
4212,
996,
93692,
345,
996,
3165,
306,
415,
51216,
345,
996,
82456,
12282,
7,
626,
84,
926,
8,
79756,
11988,
7,
626,
84,
926,
1350,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
21728,
33331,
14671,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
1079,
926,
1393,
2342,
4212,
1393,
6540,
306,
720,
220,
1041,
16,
1393,
262,
220,
16,
1393,
679,
22,
12,
605,
12,
2545,
220,
972,
25,
868,
25,
410,
1393,
220,
21,
13,
4331,
2355,
6343,
14711,
16225,
198,
62091,
220,
7261,
16,
706,
1268,
1690,
4236,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
11988,
5401,
54432,
284,
220,
220,
7261,
16,
37094,
5525,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
11988,
5401,
54432,
284,
220,
220,
7261,
16,
37094,
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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
### Question
Advisor 1121 has how many students?
| [query_database(**{'query': 'SELECT count(*) FROM Student WHERE Advisor = 1121;'})] | ### 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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
|
2,834 | [
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,
11988,
2456,
286,
800,
84,
926,
286,
31481,
38567,
12282,
345,
286,
445,
678,
286,
38689,
7,
717,
1350,
286,
435,
609,
286,
38689,
7,
717,
1350,
286,
13381,
415,
31481,
345,
286,
6834,
415,
38689,
7,
16,
1350,
286,
17559,
286,
31481,
345,
286,
54432,
415,
31481,
345,
286,
3363,
4229,
262,
38689,
7,
18,
340,
1763,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
43,
678,
1393,
37,
609,
1393,
17166,
1393,
20004,
1393,
35575,
1393,
62091,
1393,
9103,
4229,
720,
220,
1041,
16,
1393,
42985,
1393,
43,
17872,
1393,
220,
972,
1393,
220,
435,
1393,
220,
220,
5067,
1393,
256,
220,
7261,
16,
1393,
415,
70245,
2355,
6343,
23421,
14700,
26568,
2456,
996,
1838,
926,
996,
31481,
38567,
12282,
345,
996,
1838,
678,
257,
38689,
7,
1041,
1350,
996,
9356,
257,
38689,
7,
1041,
1350,
996,
19767,
31481,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
678,
1393,
6663,
9356,
1393,
22940,
720,
262,
220,
16,
1393,
86181,
1393,
15726,
18,
800,
7043,
800,
11,
24899,
11,
14306,
220,
11227,
972,
1393,
257,
220,
18,
2355,
6343,
23421,
14700,
4078,
90455,
2632,
478,
14671,
2456,
996,
1838,
926,
996,
31481,
345,
996,
1838,
93081,
256,
31481,
345,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
1350,
996,
82456,
12282,
7,
1079,
93081,
8,
79756,
26568,
14045,
7,
1079,
93081,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
955,
3659,
33331,
14671,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
93081,
720,
262,
220,
16,
1393,
286,
220,
16,
2355,
6343,
23421,
14700,
26568,
14045,
2456,
996,
1838,
93081,
310,
31481,
38567,
12282,
345,
996,
1838,
40529,
692,
38689,
7,
1272,
1350,
996,
1838,
941,
5116,
256,
38689,
7,
1041,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
1857,
10592,
220,
16,
26,
4815,
1838,
93081,
1393,
1079,
40529,
1393,
1079,
941,
5116,
720,
286,
220,
16,
1393,
256,
67836,
1393,
16778,
267,
1070,
374,
13,
2355,
6343,
23421,
14700,
7811,
1220,
2632,
478,
14671,
2456,
996,
800,
84,
926,
415,
31481,
345,
996,
1838,
926,
415,
31481,
345,
996,
4212,
996,
93692,
345,
996,
3165,
306,
415,
51216,
345,
996,
82456,
12282,
7,
626,
84,
926,
8,
79756,
11988,
7,
626,
84,
926,
1350,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
21728,
33331,
14671,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
1079,
926,
1393,
2342,
4212,
1393,
6540,
306,
720,
220,
1041,
16,
1393,
262,
220,
16,
1393,
679,
22,
12,
605,
12,
2545,
220,
972,
25,
868,
25,
410,
1393,
220,
21,
13,
4331,
2355,
6343,
14711,
16225,
198,
23956,
5575,
596,
4325,
374,
9191,
1109,
220,
972,
323,
374,
3682,
287,
304,
220,
5067,
30,
1796,
1855,
5575,
596,
1176,
323,
1566,
836,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
435,
609,
1174,
445,
609,
4393,
11988,
5401,
13381,
220,
871,
220,
220,
972,
3651,
17559,
284,
220,
5067,
37094,
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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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
435,
609,
1174,
445,
609,
4393,
11988,
5401,
13381,
220,
871,
220,
220,
972,
3651,
17559,
284,
220,
5067,
37094,
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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
### Question
Which student's age is older than 18 and is majoring in 600? List each student's first and last name.
| [query_database(**{'query': 'SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major = 600;'})] | ### 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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
|
2,838 | [
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,
11988,
2456,
286,
800,
84,
926,
286,
31481,
38567,
12282,
345,
286,
445,
678,
286,
38689,
7,
717,
1350,
286,
435,
609,
286,
38689,
7,
717,
1350,
286,
13381,
415,
31481,
345,
286,
6834,
415,
38689,
7,
16,
1350,
286,
17559,
286,
31481,
345,
286,
54432,
415,
31481,
345,
286,
3363,
4229,
262,
38689,
7,
18,
340,
1763,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
5575,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
43,
678,
1393,
37,
609,
1393,
17166,
1393,
20004,
1393,
35575,
1393,
62091,
1393,
9103,
4229,
720,
220,
1041,
16,
1393,
42985,
1393,
43,
17872,
1393,
220,
972,
1393,
220,
435,
1393,
220,
220,
5067,
1393,
256,
220,
7261,
16,
1393,
415,
70245,
2355,
6343,
23421,
14700,
26568,
2456,
996,
1838,
926,
996,
31481,
38567,
12282,
345,
996,
1838,
678,
257,
38689,
7,
1041,
1350,
996,
9356,
257,
38689,
7,
1041,
1350,
996,
19767,
31481,
198,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
678,
1393,
6663,
9356,
1393,
22940,
720,
262,
220,
16,
1393,
86181,
1393,
15726,
18,
800,
7043,
800,
11,
24899,
11,
14306,
220,
11227,
972,
1393,
257,
220,
18,
2355,
6343,
23421,
14700,
4078,
90455,
2632,
478,
14671,
2456,
996,
1838,
926,
996,
31481,
345,
996,
1838,
93081,
256,
31481,
345,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
1350,
996,
82456,
12282,
7,
1079,
93081,
8,
79756,
26568,
14045,
7,
1079,
93081,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
955,
3659,
33331,
14671,
10592,
220,
16,
26,
4815,
1838,
926,
1393,
1079,
93081,
720,
262,
220,
16,
1393,
286,
220,
16,
2355,
6343,
23421,
14700,
26568,
14045,
2456,
996,
1838,
93081,
310,
31481,
38567,
12282,
345,
996,
1838,
40529,
692,
38689,
7,
1272,
1350,
996,
1838,
941,
5116,
256,
38689,
7,
1041,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
10960,
1857,
10592,
220,
16,
26,
4815,
1838,
93081,
1393,
1079,
40529,
1393,
1079,
941,
5116,
720,
286,
220,
16,
1393,
256,
67836,
1393,
16778,
267,
1070,
374,
13,
2355,
6343,
23421,
14700,
7811,
1220,
2632,
478,
14671,
2456,
996,
800,
84,
926,
415,
31481,
345,
996,
1838,
926,
415,
31481,
345,
996,
4212,
996,
93692,
345,
996,
3165,
306,
415,
51216,
345,
996,
82456,
12282,
7,
626,
84,
926,
8,
79756,
11988,
7,
626,
84,
926,
1350,
996,
82456,
12282,
7,
1079,
926,
8,
79756,
26568,
7,
1079,
926,
340,
340,
3364,
16,
3187,
2872,
25,
720,
19638,
353,
4393,
21728,
33331,
14671,
10592,
220,
16,
26,
4815,
800,
84,
926,
1393,
1079,
926,
1393,
2342,
4212,
1393,
6540,
306,
720,
220,
1041,
16,
1393,
262,
220,
16,
1393,
679,
22,
12,
605,
12,
2545,
220,
972,
25,
868,
25,
410,
1393,
220,
21,
13,
4331,
2355,
6343,
14711,
16225,
198,
4438,
1690,
3115,
706,
279,
5575,
39162,
9259,
12263,
86181,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
11988,
13369,
7811,
1220,
2632,
478,
14671,
6328,
11988,
7914,
84,
926,
284,
7811,
1220,
2632,
478,
14671,
7914,
84,
926,
13369,
26568,
6328,
7811,
1220,
2632,
478,
14671,
8542,
926,
284,
26568,
8542,
926,
5401,
11988,
1006,
609,
284,
330,
43,
17872,
1,
3651,
11988,
1236,
609,
284,
330,
42985,
1,
3651,
26568,
8542,
678,
284,
330,
3214,
3195,
5233,
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,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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
11988,
13369,
7811,
1220,
2632,
478,
14671,
6328,
11988,
7914,
84,
926,
284,
7811,
1220,
2632,
478,
14671,
7914,
84,
926,
13369,
26568,
6328,
7811,
1220,
2632,
478,
14671,
8542,
926,
284,
26568,
8542,
926,
5401,
11988,
1006,
609,
284,
330,
43,
17872,
1,
3651,
11988,
1236,
609,
284,
330,
42985,
1,
3651,
26568,
8542,
678,
284,
330,
3214,
3195,
5233,
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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
### Question
How many times has the student Linda Smith visited Subway?
| [query_database(**{'query': 'SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";'})] | ### 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 Student (
StuID INTEGER PRIMARY KEY,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
/*
1 example row:
SELECT * FROM student LIMIT 1;
StuID ||LName ||Fname ||Age ||Sex ||Major ||Advisor ||city_code
1001 ||Smith ||Linda || 18 || F || 600 || 1121 || BAL
*/
CREATE TABLE Restaurant (
ResID INTEGER PRIMARY KEY,
ResName VARCHAR(100),
Address VARCHAR(100),
Rating INTEGER
)
/*
1 example row:
SELECT * FROM restaurant LIMIT 1;
ResID ||ResName || Address ||Rating
1 || Subway ||3233 St Paul St, Baltimore, MD 21218 || 3
*/
CREATE TABLE Type_Of_Restaurant (
ResID INTEGER,
ResTypeID INTEGER,
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID),
FOREIGN KEY(ResTypeID) REFERENCES Restaurant_Type(ResTypeID)
)
/*
1 example row:
SELECT * FROM type_of_restaurant LIMIT 1;
ResID ||ResTypeID
1 || 1
*/
CREATE TABLE Restaurant_Type (
ResTypeID INTEGER PRIMARY KEY,
ResTypeName VARCHAR(40),
ResTypeDescription VARCHAR(100)
)
/*
1 example row:
SELECT * FROM restaurant_type LIMIT 1;
ResTypeID ||ResTypeName ||ResTypeDescription
1 || Sandwich ||Simplest there is.
*/
CREATE TABLE Visits_Restaurant (
StuID INTEGER,
ResID INTEGER,
Time TIMESTAMP,
Spent FLOAT,
FOREIGN KEY(StuID) REFERENCES Student(StuID),
FOREIGN KEY(ResID) REFERENCES Restaurant(ResID)
)
/*
1 example row:
SELECT * FROM visits_restaurant LIMIT 1;
StuID ||ResID || Time ||Spent
1001 || 1 ||2017-10-09 18:15:00 || 6.53
*/
|
2,842 | [
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,
14483,
315,
10373,
6832,
2704,
374,
364,
7336,
4527,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
5150,
8028,
851,
4393,
5150,
38229,
5401,
2015,
4878,
4229,
220,
284,
220,
364,
7336,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
5150,
8028,
851,
4393,
5150,
38229,
5401,
2015,
4878,
4229,
220,
284,
220,
364,
7336,
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
Find the ids of orders whose status is 'Success'.
| [query_database(**{'query': 'SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success''})] | ### 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,846 | [
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,
7968,
279,
3649,
315,
682,
27861,
304,
279,
2015,
315,
872,
5842,
1396,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
11092,
13563,
4393,
27861,
15888,
7866,
11092,
62,
94306,
5617,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
11092,
13563,
4393,
27861,
15888,
7866,
11092,
62,
94306,
5617,
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
Show the details of all trucks in the order of their license number.
| [query_database(**{'query': 'SELECT truck_details FROM trucks ORDER BY truck_licence_number'})] | ### 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,850 | [
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,
5144,
323,
4641,
5219,
315,
6444,
5496,
304,
7188,
1614,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
32880,
1292,
1174,
220,
259,
16,
32880,
22942,
4393,
6444,
5871,
259,
16,
13369,
6130,
60571,
5871,
259,
17,
6328,
259,
16,
32880,
851,
220,
284,
220,
259,
17,
32880,
851,
13369,
14564,
5871,
259,
18,
6328,
259,
17,
14111,
851,
220,
284,
220,
259,
18,
14111,
851,
5401,
259,
18,
3551,
98216,
3259,
88,
220,
284,
220,
364,
46510,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
32880,
1292,
1174,
220,
259,
16,
32880,
22942,
4393,
6444,
5871,
259,
16,
13369,
6130,
60571,
5871,
259,
17,
6328,
259,
16,
32880,
851,
220,
284,
220,
259,
17,
32880,
851,
13369,
14564,
5871,
259,
18,
6328,
259,
17,
14111,
851,
220,
284,
220,
259,
18,
14111,
851,
5401,
259,
18,
3551,
98216,
3259,
88,
220,
284,
220,
364,
46510,
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
Find the names and phone numbers of customers living in California state.
| [query_database(**{'query': 'SELECT t1.customer_name , t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California''})] | ### 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,854 | [
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,
8323,
1749,
430,
374,
1511,
1455,
14134,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
8323,
9209,
4393,
40689,
27968,
7866,
8323,
9209,
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,
1,
1,
1,
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
8323,
9209,
4393,
40689,
27968,
7866,
8323,
9209,
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 `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 payment method that is used most frequently.
| [query_database(**{'query': 'SELECT payment_method FROM Customers GROUP BY payment_method 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 `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,858 | [
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,
12283,
527,
1070,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
12283,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12283,
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
How many authors are there?
| [query_database(**{'query': 'SELECT count(*) FROM authors'})] | ### 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,862 | [
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,
4756,
304,
2860,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
16064,
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,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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
16064,
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
How many papers are published in total?
| [query_database(**{'query': 'SELECT count(*) FROM papers'})] | ### 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,866 | [
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,
682,
279,
16064,
4756,
555,
330,
75903,
8877,
263,
3343,
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,
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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,
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,
75903,
1,
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
Find all the papers published by "Aaron Turon".
| [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 = "Aaron" 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,870 | [
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,
430,
330,
11836,
339,
3557,
2563,
3972,
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,
11836,
339,
3557,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
11836,
339,
3557,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
5028,
3972,
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 that "Matthias Blume" 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 = "Matthias" AND t1.lname = "Blume"'})] | ### 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,874 | [
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,
15546,
9352,
311,
279,
15244,
330,
31272,
315,
26275,
44969,
7073,
279,
1176,
5144,
323,
1566,
5144,
13,
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,
31272,
315,
26275,
21230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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,
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,
31272,
315,
26275,
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
Who belong to the institution "University of Oxford"? Show the first names and last names.
| [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 = "University of Oxford"'})] | ### 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,878 | [
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,
1566,
5144,
315,
279,
3229,
315,
279,
5684,
25891,
330,
10154,
388,
1252,
11130,
44969,
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,
5401,
259,
18,
6195,
220,
284,
220,
330,
10154,
388,
1252,
11130,
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,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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,
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,
5401,
259,
18,
6195,
220,
284,
220,
330,
10154,
388,
1252,
11130,
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 last names of the author of the paper titled "Binders Unbound"?
| [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 WHERE t3.title = "Binders Unbound"'})] | ### 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,882 | [
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,
16064,
4756,
1234,
279,
15244,
330,
89849,
3907,
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,
89849,
3907,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
89849,
3907,
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 papers published under the institution "Indiana University"?
| [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 = "Indiana University"'})] | ### 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,886 | [
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,
4756,
555,
279,
15244,
330,
53954,
2319,
84,
3907,
44969,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
259,
16,
6195,
8,
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,
53954,
2319,
84,
3907,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
259,
16,
6195,
8,
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,
53954,
2319,
84,
3907,
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 published by the institution "Tokohu University"?
| [query_database(**{'query': 'SELECT count(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 = "Tokohu University"'})] | ### 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,889 | [
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,
5439,
555,
12283,
505,
279,
15244,
330,
31272,
315,
20355,
44969,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
259,
16,
6195,
8,
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,
31272,
315,
20355,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
259,
16,
6195,
8,
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,
31272,
315,
20355,
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 written by authors from the institution "University of Pennsylvania"?
| [query_database(**{'query': 'SELECT count(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 = "University of Pennsylvania"'})] | ### 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,893 | [
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,
279,
16064,
279,
3229,
330,
8468,
10118,
648,
1226,
404,
718,
1,
6267,
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,
8468,
10118,
648,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
1687,
404,
718,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8468,
10118,
648,
1,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
1687,
404,
718,
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 the papers the author "Stephanie Weirich" wrote.
| [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 = "Stephanie" AND t1.lname = "Weirich"'})] | ### 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,897 | [
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,
6,
1176,
3229,
374,
37506,
449,
459,
15244,
304,
279,
3224,
330,
49852,
1,
323,
706,
1566,
836,
330,
12174,
13915,
44969,
21335,
757,
279,
15671,
315,
279,
16064,
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,
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,
49852,
1,
3651,
259,
17,
9144,
1382,
220,
284,
220,
220,
16,
3651,
259,
16,
929,
609,
220,
284,
220,
330,
12174,
13915,
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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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,
-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,
49852,
1,
3651,
259,
17,
9144,
1382,
220,
284,
220,
220,
16,
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
Which papers' first author is affiliated with an institution in the country "Japan" and has last name "Ohori"? Give me the titles of the papers.
| [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 = "Japan" AND t2.authorder = 1 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,902 | [
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,
836,
315,
279,
7471,
430,
706,
4756,
279,
7928,
1396,
315,
16064,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
2710,
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,
2710,
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,
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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
259,
16,
2710,
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,
2710,
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 name of the organization that has published the largest number of papers.
| [query_database(**{'query': 'SELECT t1.name 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.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 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,905 | [
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,
617,
279,
39549,
330,
2735,
1,
304,
872,
15671,
30,
3494,
279,
15671,
315,
279,
16064,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
16064,
5401,
2316,
21170,
6090,
2735,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2735,
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 papers have the substring "ML" in their titles? Return the titles of the papers.
| [query_database(**{'query': 'SELECT title FROM papers WHERE title LIKE "%ML%"'})] | ### 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,909 | [
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,
15546,
706,
5439,
264,
5684,
430,
706,
279,
3492,
330,
72371,
1,
304,
1202,
2316,
30,
3494,
279,
1176,
5144,
315,
279,
12283,
13,
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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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,
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
Who has written a paper that has the word "Functional" in its title? Return the first names of the authors.
| [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,912 | [
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,
88765,
279,
2316,
315,
279,
5684,
430,
706,
279,
7928,
1396,
315,
12283,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
Retrieve the title of the paper that has the largest number of authors.
| [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,916 | [
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,
1566,
836,
315,
279,
3229,
449,
1176,
836,
330,
6219,
278,
3343,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
77239,
4393,
12283,
5401,
23364,
220,
284,
220,
330,
6219,
278,
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,
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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
77239,
4393,
12283,
5401,
23364,
220,
284,
220,
330,
6219,
278,
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 last name of the author with first name "Amal".
| [query_database(**{'query': 'SELECT lname FROM authors WHERE fname = "Amal"'})] | ### 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,920 | [
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,
88765,
682,
279,
1566,
5144,
315,
12283,
304,
84398,
2015,
13,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
Retrieve all the last names of authors 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,924 | [
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,
2204,
1566,
5144,
656,
279,
20142,
323,
91128,
617,
30,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
How many different last names do the actors and actresses 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,928 | [
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,
1455,
5526,
2539,
836,
315,
279,
20142,
30,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
What is the most popular full name of the 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,932 | [
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,
4641,
1396,
323,
40854,
2082,
315,
279,
2686,
220,
6889,
16,
14569,
773,
402,
79,
8839,
68253,
30,
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,
8839,
68253,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
What is the phone number and postal code of 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,936 | [
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,
14564,
527,
304,
279,
9474,
315,
7188,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
2686,
5401,
9474,
220,
284,
220,
364,
46510,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2686,
5401,
9474,
220,
284,
220,
364,
46510,
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 addresses are in the district of California?
| [query_database(**{'query': 'SELECT count(*) FROM address WHERE district = 'California''})] | ### 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,940 | [
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,
9919,
527,
304,
8494,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
3363,
5871,
350,
16,
13369,
3224,
5871,
350,
17,
6328,
350,
16,
34424,
851,
220,
284,
220,
350,
17,
34424,
851,
5401,
350,
17,
34424,
220,
284,
220,
364,
49137,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3363,
5871,
350,
16,
13369,
3224,
5871,
350,
17,
6328,
350,
16,
34424,
851,
220,
284,
220,
350,
17,
34424,
851,
5401,
350,
17,
34424,
220,
284,
220,
364,
49137,
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 cities are in Australia?
| [query_database(**{'query': 'SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia''})] | ### 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,945 | [
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,
527,
279,
8323,
13003,
369,
904,
14507,
430,
617,
459,
3392,
7191,
1109,
220,
605,
477,
1051,
18073,
555,
264,
5687,
4562,
449,
279,
1176,
836,
49064,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
8323,
4257,
4393,
8323,
5401,
3392,
220,
871,
220,
220,
605,
78653,
19638,
350,
16,
43134,
4257,
4393,
8323,
5871,
350,
16,
13369,
5687,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
92966,
851,
5401,
350,
17,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8323,
4257,
4393,
8323,
5401,
3392,
220,
871,
220,
220,
605,
78653,
19638,
350,
16,
43134,
4257,
4393,
8323,
5871,
350,
16,
13369,
5687,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
92966,
851,
5401,
350,
17,
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
What are the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?
| [query_database(**{'query': 'SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.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
*/
|
2,949 | [
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,
527,
279,
2316,
323,
19160,
4478,
315,
279,
4632,
449,
279,
8592,
19160,
4478,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
1174,
220,
19160,
9430,
4393,
4632,
15888,
7866,
19160,
9430,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
19160,
9430,
4393,
4632,
15888,
7866,
19160,
9430,
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
What are the title and rental rate of the film with the highest rental rate?
| [query_database(**{'query': 'SELECT title , rental_rate FROM film ORDER BY rental_rate 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,953 | [
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,
2539,
836,
323,
887,
315,
279,
12360,
477,
24577,
889,
59335,
304,
279,
12474,
1396,
315,
12631,
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,
1174,
220,
350,
17,
42468,
851,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1174,
220,
350,
17,
42468,
851,
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,
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 full name and id of the actor or actress who starred in the greatest number of films.
| [query_database(**{'query': 'SELECT T2.first_name , T2.last_name , T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_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,957 | [
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,
887,
315,
279,
3637,
430,
706,
279,
1455,
3673,
304,
15808,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
3637,
851,
4393,
15808,
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,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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
15808,
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
What is the id of the store that has the most items in inventory?
| [query_database(**{'query': 'SELECT store_id FROM inventory 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
*/
|
2,961 | [
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,
2539,
836,
323,
887,
315,
279,
6130,
889,
706,
279,
15821,
2860,
3392,
315,
8323,
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,
1174,
220,
350,
16,
32880,
851,
4393,
6130,
5871,
350,
16,
13369,
8323,
5871,
350,
17,
6328,
350,
16,
32880,
851,
220,
284,
220,
350,
17,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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,
-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,
32880,
851,
4393,
6130,
5871,
350,
16,
13369,
8323,
5871,
350,
17,
6328,
350,
16,
32880,
851,
220,
284,
220,
350,
17,
32880,
851,
27968,
7866,
350,
16,
32880,
851,
15888,
7866,
2694,
35089,
8,
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 full name and id of the customer who has the lowest total amount of payment?
| [query_database(**{'query': 'SELECT T1.first_name , T1.last_name , T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) 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,965 | [
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,
527,
279,
5144,
323,
14483,
315,
279,
2204,
11306,
11,
323,
1268,
1690,
12631,
527,
304,
1855,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
2710,
1174,
220,
350,
16,
18898,
851,
1174,
220,
1797,
29771,
4393,
4632,
12110,
5871,
350,
16,
13369,
5699,
5871,
350,
17,
6328,
350,
16,
18898,
851,
220,
284,
220,
350,
17,
18898,
851,
27968,
7866,
350,
16,
18898,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2710,
1174,
220,
350,
16,
18898,
851,
1174,
220,
1797,
29771,
4393,
4632,
12110,
5871,
350,
16,
13369,
5699,
5871,
350,
17,
6328,
350,
16,
18898,
851,
220,
284,
220,
350,
17,
18898,
851,
27968,
7866,
350,
16,
18898,
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 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 are the names and ids of the different categories, and how many films are in each?
| [query_database(**{'query': 'SELECT T2.name , T1.category_id , count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_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 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,969 | [
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,
2316,
323,
15808,
887,
315,
279,
4632,
430,
374,
49959,
1455,
3629,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
16,
6195,
1174,
220,
350,
17,
38134,
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,
13369,
19160,
5871,
350,
18,
6328,
350,
17,
38134,
851,
220,
284,
220,
350,
18,
38134,
851,
27968,
7866,
350,
17,
38134,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
17,
38134,
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,
13369,
19160,
5871,
350,
18,
6328,
350,
17,
38134,
851,
220,
284,
220,
350,
18,
38134,
851,
27968,
7866,
350,
17,
38134,
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
Return the title and inventory id of the film that is rented most often.
| [query_database(**{'query': 'SELECT T1.title , T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_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,974 | [
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,
374,
3637,
220,
16,
7559,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
14111,
4393,
3637,
5871,
350,
16,
13369,
2686,
5871,
350,
17,
6328,
350,
16,
14111,
851,
220,
284,
220,
350,
17,
14111,
851,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3637,
5871,
350,
16,
13369,
2686,
5871,
350,
17,
6328,
350,
16,
14111,
851,
220,
284,
220,
350,
17,
14111,
851,
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
Where is store 1 located?
| [query_database(**{'query': 'SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id 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,978 | [
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,
4221,
1587,
279,
4632,
46994,
5205,
32740,
8204,
1005,
30,
1796,
279,
4221,
836,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
350,
17,
2710,
4393,
4632,
5871,
350,
16,
13369,
35900,
5871,
350,
17,
6328,
350,
16,
32733,
851,
220,
284,
220,
350,
17,
32733,
851,
5401,
350,
16,
6195,
220,
284,
220,
364,
58261,
5205,
32740,
8204,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2710,
4393,
4632,
5871,
350,
16,
13369,
35900,
5871,
350,
17,
6328,
350,
16,
32733,
851,
220,
284,
220,
350,
17,
32733,
851,
5401,
350,
16,
6195,
220,
284,
220,
364,
58261,
5205,
32740,
8204,
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
Which language does the film AIRPORT POLLOCK use? List the language name.
| [query_database(**{'query': 'SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK''})] | ### 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,981 | [
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,
10756,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
29771,
4393,
3637,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3637,
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 stores.
| [query_database(**{'query': 'SELECT count(*) FROM store'})] | ### 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,985 | [
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,
12631,
430,
2997,
364,
27130,
84283,
6,
304,
872,
3361,
4668,
3857,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
4632,
5401,
3361,
15314,
21170,
7832,
27130,
84283,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3361,
15314,
21170,
7832,
27130,
84283,
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 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 films that include 'Deleted Scenes' in their special feature section.
| [query_database(**{'query': 'SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%''})] | ### 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,989 | [
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,
574,
279,
2457,
315,
279,
30758,
8323,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
8323,
4257,
4393,
8323,
15888,
7866,
8323,
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,
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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8323,
4257,
4393,
8323,
15888,
7866,
8323,
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 was the date of the earliest payment?
| [query_database(**{'query': 'SELECT payment_date FROM payment ORDER BY payment_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,993 | [
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,
527,
279,
15671,
315,
12631,
430,
527,
3060,
5129,
1109,
220,
1041,
4520,
477,
22359,
31144,
1023,
1109,
1884,
430,
2853,
810,
1109,
220,
1049,
311,
8454,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
4632,
5401,
72938,
220,
871,
220,
220,
1041,
2794,
10959,
220,
284,
220,
364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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2316,
4393,
4632,
5401,
72938,
220,
871,
220,
220,
1041,
2794,
10959,
220,
284,
220,
364,
11637,
6,
4154,
21752,
19638,
2316,
4393,
4632,
5401,
14039,
16269,
220,
871,
220,
220,
1049,
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 are the titles of films that are either longer than 100 minutes or rated PG other than those that cost more than 200 to replace?
| [query_database(**{'query': 'SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200'})] | ### 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,997 | [
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,
2539,
836,
315,
279,
5687,
889,
3984,
264,
6130,
449,
279,
1176,
836,
5936,
323,
279,
1566,
836,
51016,
449,
264,
4632,
19160,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
60186,
350,
16,
7541,
1292,
1174,
220,
350,
16,
9288,
1292,
4393,
5687,
5871,
350,
16,
13369,
19160,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
92966,
851,
13369,
6130,
5871,
350,
18,
6328,
350,
17,
32880,
851,
220,
284,
220,
350,
18,
32880,
851,
5401,
350,
18,
7541,
1292,
220,
284,
220,
364,
2599,
49,
1750,
6,
3651,
350,
18,
9288,
1292,
220,
284,
220,
364,
33,
55345,
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,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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
7541,
1292,
1174,
220,
350,
16,
9288,
1292,
4393,
5687,
5871,
350,
16,
13369,
19160,
5871,
350,
17,
6328,
350,
16,
92966,
851,
220,
284,
220,
350,
17,
92966,
851,
13369,
6130,
5871,
350,
18,
6328,
350,
17,
32880,
851,
220,
284,
220,
350,
18,
32880,
851,
5401,
350,
18,
7541,
1292,
220,
284,
220,
364,
2599,
49,
1750,
6,
3651,
350,
18,
9288,
1292,
220,
284,
220,
364,
33,
55345,
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 full name of the staff who provided a customer with the first name April and the last name Burns with a film rental.
| [query_database(**{'query': 'SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS''})] | ### 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,001 | [
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,
3392,
315,
279,
7928,
8323,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
3392,
4393,
8323,
15888,
7866,
3392,
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,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3392,
4393,
8323,
15888,
7866,
3392,
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 amount of the largest payment.
| [query_database(**{'query': 'SELECT amount FROM payment ORDER BY 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 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,005 | [
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,
1176,
5144,
315,
6444,
889,
1550,
539,
49959,
264,
4632,
1306,
279,
2457,
364,
1049,
20,
12,
2318,
12,
1419,
220,
2437,
25,
2705,
25,
1721,
4527,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1176,
1292,
4393,
6130,
5401,
6130,
851,
4276,
2006,
7,
19638,
6130,
851,
4393,
19160,
5401,
19160,
4257,
220,
871,
220,
364,
1049,
20,
12,
2318,
12,
1419,
220,
2437,
25,
2705,
25,
1721,
6,
883,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4393,
6130,
5401,
6130,
851,
4276,
2006,
7,
19638,
6130,
851,
4393,
19160,
5401,
19160,
4257,
220,
871,
220,
364,
1049,
20,
12,
2318,
12,
1419,
220,
2437,
25,
2705,
25,
1721,
6,
883,
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 first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.
| [query_database(**{'query': 'SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01' )'})] | ### 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,013 | [
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,
5578,
1396,
315,
6444,
4028,
14286,
304,
279,
1614,
315,
23195,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
20291,
40305,
3659,
16254,
388,
8,
4393,
6201,
5401,
1614,
220,
284,
220,
364,
61220,
1494,
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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
1,
1,
1,
1,
1,
1,
1,
1,
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,
20291,
40305,
3659,
16254,
388,
8,
4393,
6201,
5401,
1614,
220,
284,
220,
364,
61220,
1494,
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 average number of customers across banks in the state of Utah?
| [query_database(**{'query': 'SELECT avg(no_of_customers) FROM bank WHERE state = 'Utah''})] | ### 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,017 | [
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,
3363,
323,
1614,
374,
279,
6201,
449,
279,
836,
58302,
579,
304,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
3363,
1174,
220,
1614,
4393,
6201,
5401,
293,
609,
220,
284,
220,
364,
76,
52785,
579,
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,
1,
1,
1,
1,
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,
3363,
1174,
220,
1614,
4393,
6201,
5401,
293,
609,
220,
284,
220,
364,
76,
52785,
579,
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 city and state is the bank with the name morningside in?
| [query_database(**{'query': 'SELECT city , state FROM bank WHERE bname = 'morningside''})] | ### 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,021 | [
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,
682,
6444,
11,
11713,
555,
2759,
8335,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
15888,
7866,
1046,
57541,
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,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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,
16973,
1292,
4393,
6130,
15888,
7866,
1046,
57541,
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 names of all customers, ordered by account balance?
| [query_database(**{'query': 'SELECT cust_name FROM customer ORDER BY acc_bal'})] | ### 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,027 | [
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,
9919,
527,
14286,
7559,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
3363,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3363,
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 cities are banks located?
| [query_database(**{'query': 'SELECT count(DISTINCT city) 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,031 | [
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,
2568,
279,
1396,
315,
2204,
2759,
4595,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1046,
1857,
8,
4393,
6130,
66360,
60,
128009
] | [
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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
1797,
5549,
3931,
46419,
1046,
1857,
8,
4393,
6130,
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
Count the number of different account types.
| [query_database(**{'query': 'SELECT count(DISTINCT acc_type) 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,034 | [
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,
2860,
2759,
8335,
315,
1855,
6130,
505,
23195,
477,
8421,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
2694,
49555,
57541,
8,
4393,
6130,
5401,
1614,
220,
284,
220,
364,
61220,
1494,
6,
2794,
1614,
220,
284,
220,
364,
51325,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4393,
6130,
5401,
1614,
220,
284,
220,
364,
61220,
1494,
6,
2794,
1614,
220,
284,
220,
364,
51325,
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 total account balance of each customer from Utah or Texas.
| [query_database(**{'query': 'SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = '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 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,038 | [
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,
656,
539,
617,
459,
14324,
2759,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
4154,
21752,
19638,
16973,
1292,
4393,
6130,
5401,
1046,
1857,
220,
284,
220,
364,
84157,
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,
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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,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
4154,
21752,
19638,
16973,
1292,
4393,
6130,
5401,
1046,
1857,
220,
284,
220,
364,
84157,
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 name of customers who do not have an saving account.
| [query_database(**{'query': 'SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving''})] | ### 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,042 | [
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,
17017,
315,
2225,
22806,
56144,
323,
9156,
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,
5401,
11941,
1857,
220,
284,
220,
364,
44,
371,
56144,
6,
30442,
937,
1182,
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,
11941,
1857,
220,
284,
220,
364,
13556,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
5401,
11941,
1857,
220,
284,
220,
364,
44,
371,
56144,
6,
30442,
937,
1182,
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,
11941,
1857,
220,
284,
220,
364,
13556,
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 name of customers who have loans of both Mortgages and Auto.
| [query_database(**{'query': 'SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto''})] | ### 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,046 | [
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,
836,
315,
279,
6201,
430,
706,
279,
1455,
1396,
315,
6444,
13,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
293,
609,
4393,
6201,
15888,
7866,
912,
3659,
16254,
388,
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,
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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,
-100,
-100,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
293,
609,
4393,
6201,
15888,
7866,
912,
3659,
16254,
388,
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 branch name of the bank that has the most number of customers.
| [query_database(**{'query': 'SELECT bname FROM bank ORDER BY 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,049 | [
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,
836,
315,
279,
6130,
449,
279,
12047,
6807,
5573,
30,
128009,
128006,
78191,
128007,
271,
58,
1663,
28441,
22551,
13922,
1663,
1232,
364,
4963,
16973,
1292,
4393,
6130,
15888,
7866,
6807,
10622,
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,
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,
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,
16973,
1292,
4393,
6130,
15888,
7866,
6807,
10622,
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
What is the name of the customer with the worst credit score?
| [query_database(**{'query': 'SELECT cust_name FROM customer ORDER BY credit_score 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
*/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.