input_ids
sequence | attention_mask
sequence | labels
sequence | prompt
stringlengths 528
1.77k
| completion
stringlengths 40
173
|
---|---|---|---|---|
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
22799,
601,
262,
363,
29871,
29896,
29929,
29955,
29945,
29994,
29896,
29929,
29955,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29896,
29900,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29896,
29947,
29955,
29941,
29896,
29918,
29896,
313,
13,
12,
21472,
1426,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
12883,
29879,
1426,
29892,
13,
12,
5631,
362,
1426,
29892,
13,
12,
29911,
272,
802,
1426,
29892,
13,
12,
2568,
29884,
428,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29906,
313,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
29924,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
1542,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29945,
29929,
29896,
29946,
29918,
29906,
29946,
313,
13,
12,
29908,
6293,
1023,
29908,
1426,
29892,
13,
12,
29908,
6293,
322,
306,
29908,
1426,
29892,
13,
12,
29908,
705,
1023,
29908,
1426,
29892,
13,
12,
29908,
8259,
29914,
29903,
3096,
861,
29908,
1426,
29892,
13,
12,
29908,
386,
331,
1023,
313,
1552,
1023,
5513,
1426,
29892,
13,
12,
29908,
15970,
29899,
10184,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
22799,
601,
262,
363,
29871,
29896,
29929,
29955,
29945,
29994,
29896,
29929,
29955,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
1894,
29884,
428,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29896,
29947,
29955,
29941,
29896,
29918,
29896,
5754,
376,
12883,
29879,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29955,
29945,
29994,
29896,
29929,
29955,
29953,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
1894,
29884,
428,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29896,
29947,
29955,
29941,
29896,
29918,
29896,
5754,
376,
12883,
29879,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29955,
29945,
29994,
29896,
29929,
29955,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the inductioin for 1975–1976?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11960610_10 (
Date text,
"High assists" text,
"Location Attendance" text,
Team text,
Record text,
Score text,
Game numeric,
"High points" text,
"High rebounds" text
);
CREATE TABLE table_2_1118731_1 (
Power text,
Engine text,
Years text,
Generation text,
Torque text,
Induction text
);
CREATE TABLE table_1_10577579_2 (
Enrollment numeric,
"Mens Nickname" text,
Location text,
"Womens Nickname" text,
Institution text,
Founded numeric,
Joined text,
Type text
);
CREATE TABLE table_1_1015914_24 (
"you two" text,
"you and I" text,
"we two" text,
"Case/Suffix" text,
"them two (the two)" text,
"who-two" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the inductioin for 1975–1976?`
```sql
| SELECT Induction FROM table_2_1118731_1 WHERE "Years" ILIKE '%1975–1976%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
29915,
29879,
278,
30081,
2914,
30081,
2541,
30081,
4102,
11467,
30081,
915,
292,
29871,
29896,
29929,
29906,
29906,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29906,
29929,
29896,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
29909,
566,
654,
4412,
29908,
1426,
29892,
13,
12,
29908,
29923,
12907,
5593,
4712,
29908,
1426,
29892,
13,
12,
29908,
10717,
9548,
434,
29908,
1426,
29892,
13,
12,
29908,
10717,
4712,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29954,
1025,
264,
323,
860,
1691,
29908,
16985,
29892,
13,
12,
29908,
6730,
8612,
654,
9548,
434,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29953,
29929,
29947,
29918,
29896,
313,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29908,
7031,
885,
9386,
29908,
1426,
29892,
13,
12,
29908,
1349,
1823,
2058,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29896,
29945,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
6330,
4320,
20084,
29908,
1426,
29892,
13,
12,
29908,
29937,
310,
23238,
29908,
16985,
29892,
13,
12,
29908,
4789,
1038,
292,
4320,
20084,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29945,
29929,
29918,
29896,
29945,
313,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
29915,
29879,
278,
30081,
2914,
30081,
2541,
30081,
4102,
11467,
30081,
915,
292,
29871,
29896,
29929,
29906,
29906,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29945,
29929,
29918,
29896,
29945,
5754,
376,
6730,
11467,
29908,
353,
525,
29896,
29929,
29906,
29906,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29945,
29929,
29918,
29896,
29945,
5754,
376,
6730,
11467,
29908,
353,
525,
29896,
29929,
29906,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`what's the result with first elected being 1922`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11129123_1 (
"Audition City" text,
"Episode Air Date" text,
"Callback Venue" text,
"Callback Date" text,
Date text,
"Golden Tickets" numeric,
"First Audition Venue" text
);
CREATE TABLE table_1_1167698_1 (
Champion text,
Season text,
"Runner-up" text,
"Top scorer" text,
"Third place" text
);
CREATE TABLE table_1_12441518_1 (
"Portrayed by" text,
Character text,
"Main cast seasons" text,
"# of episodes" numeric,
"Recurring cast seasons" text
);
CREATE TABLE table_1_1342359_15 (
Incumbent text,
District text,
Result text,
Party text,
Candidates text,
"First elected" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`what's the result with first elected being 1922`
```sql
| SELECT RESULT FROM table_1_1342359_15 WHERE "First elected" = '1922' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1134,
338,
26351,
573,
1353,
26637,
29940,
29871,
29946,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29896,
29941,
29953,
29906,
29918,
29896,
313,
13,
12,
2517,
9765,
9945,
1426,
29892,
13,
12,
20420,
25381,
1426,
29892,
13,
12,
29908,
3410,
23045,
573,
1353,
29908,
1426,
29892,
13,
12,
3195,
1426,
29892,
13,
12,
1542,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29953,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29953,
313,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29906,
29941,
29947,
29947,
29918,
29896,
313,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
29908,
4597,
29889,
24791,
29908,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
3226,
3437,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
1134,
338,
26351,
573,
1353,
26637,
29940,
29871,
29946,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
323,
6959,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29896,
29941,
29953,
29906,
29918,
29896,
5754,
376,
3410,
23045,
573,
1353,
29908,
306,
5265,
6059,
14210,
312,
29876,
29995,
29946,
29953,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
323,
6959,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29896,
29941,
29953,
29906,
29918,
29896,
5754,
376,
3410,
23045,
573,
1353,
29908,
306,
5265,
6059,
14210,
312,
29876,
29995,
29946,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What type is locomotive number CTN 46?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15441362_1 (
Manufacturer text,
Propulsion text,
"Locomotive number" text,
Model text,
Type text
);
CREATE TABLE table_1_11677691_6 (
College text,
Hometown text,
Player text,
Position text,
School text
);
CREATE TABLE table_1_11111116_6 (
"U.S. viewers (million)" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"No. in season" numeric,
"No. in series" numeric,
Title text
);
CREATE TABLE table_1_12002388_1 (
"Open Cup" text,
"Reg. Season" text,
Playoffs text,
Year numeric,
Division text,
League text
);
```
### Answer
Here is the SQL query that answers the question:
`What type is locomotive number CTN 46?`
```sql
| SELECT TYPE FROM table_2_15441362_1 WHERE "Locomotive number" ILIKE '%ctn%46%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
6410,
411,
2407,
310,
29871,
29946,
29945,
29899,
29945,
29929,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29946,
29906,
29929,
29946,
29945,
29918,
29896,
313,
13,
12,
29908,
11536,
1939,
1213,
16985,
29892,
13,
12,
29907,
6146,
1182,
537,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
1043,
414,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29953,
29900,
29945,
29953,
29918,
29953,
313,
13,
12,
2539,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29931,
2209,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
4165,
21642,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29941,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29900,
29955,
29896,
29946,
29906,
29918,
29906,
313,
13,
12,
29934,
299,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
16885,
29914,
6508,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29896,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
29943,
16750,
1426,
29892,
13,
12,
29908,
29909,
386,
2810,
313,
6632,
29907,
5513,
1426,
29892,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
11536,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1170,
278,
6410,
411,
2407,
310,
29871,
29946,
29945,
29899,
29945,
29929,
29952,
13,
28956,
2850,
13,
5097,
365,
2209,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29953,
29900,
29945,
29953,
29918,
29953,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29946,
29945,
29899,
29945,
29929,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
365,
2209,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29953,
29900,
29945,
29953,
29918,
29953,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29946,
29945,
29899,
29945,
29929,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the loss with record of 45-59`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11642945_1 (
"Total No." numeric,
Celebrity text,
"Original air date" text,
Director text,
Viewers text
);
CREATE TABLE table_2_12206056_6 (
Date text,
Record text,
Opponent text,
Loss text,
Score text,
Attendance text
);
CREATE TABLE table_1_11734041_3 (
Player text,
"School/Club Team/Country" text,
"No.(s)" text,
Position text,
"Height in Ft." text,
"Years for Rockets" text
);
CREATE TABLE table_1_10707142_2 (
Rnd text,
"Winning driver" text,
"Winning team" text,
"City/Location" text,
"Race Name" text,
Circuit text,
"Pole position" text,
Report text
);
CREATE TABLE table_1_12407546_1 (
"#" numeric,
Riding text,
Running text,
Fencing text,
"Athlete (NOC)" text,
Shooting text,
Swimming text,
Total numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Name the loss with record of 45-59`
```sql
| SELECT Loss FROM table_2_12206056_6 WHERE "Record" ILIKE '%45-59%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
6028,
366,
2649,
592,
278,
2522,
487,
393,
756,
278,
4712,
310,
17187,
29871,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29941,
29953,
29906,
29896,
29918,
29953,
313,
13,
12,
29908,
1748,
22863,
5165,
478,
3848,
14091,
1099,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
6932,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
3741,
8228,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
3122,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29953,
29947,
29929,
29941,
29918,
29941,
313,
13,
12,
8514,
1426,
29892,
13,
12,
29908,
29925,
277,
1634,
272,
2153,
29908,
1426,
29892,
13,
12,
29908,
6572,
29899,
25525,
3483,
858,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
3306,
3440,
1061,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29955,
29946,
29941,
29918,
29896,
313,
13,
12,
20325,
1426,
29892,
13,
12,
29908,
5098,
29907,
6536,
29908,
16985,
29892,
13,
12,
29908,
4782,
7408,
29908,
16985,
29892,
13,
12,
29908,
13404,
7993,
29908,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
13454,
29899,
2696,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29906,
29947,
29896,
29946,
29918,
29947,
313,
13,
12,
19409,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29941,
29918,
29953,
313,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
23770,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
6028,
366,
2649,
592,
278,
2522,
487,
393,
756,
278,
4712,
310,
17187,
29871,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29906,
29947,
29896,
29946,
29918,
29947,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
481,
4115,
29995,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29906,
29947,
29896,
29946,
29918,
29947,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
481,
4115,
29995,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Can you tell me the Score that has the Date of april 8?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12283621_6 (
"Serbian League Vojvodina" text,
Season text,
"Serbian League East" text,
"Serbian League Belgrade" text,
"Serbian League West" text
);
CREATE TABLE table_1_10716893_3 (
Host text,
"Pit reporters" text,
"Pre-race analyst" text,
Network text,
Year numeric,
"Color commentator(s)" text,
"Lap-by-lap" text
);
CREATE TABLE table_1_1059743_1 (
Points text,
"AFC Cup" numeric,
"Group stage" numeric,
"Member Association" text,
Rank numeric,
"Play-off" numeric
);
CREATE TABLE table_2_15872814_8 (
Team text,
Date text,
Score text,
"Location Attendance" text,
"High points" text,
Record text,
"High rebounds" text,
Game numeric,
"High assists" text
);
CREATE TABLE table_1_1140103_6 (
Circuit text,
Report text,
"Winning driver" text,
"Race Name" text,
"#" numeric,
Constructor text
);
```
### Answer
Here is the SQL query that answers the question:
`Can you tell me the Score that has the Date of april 8?`
```sql
| SELECT Score FROM table_2_15872814_8 WHERE "Date" ILIKE '%april%8%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1353,
988,
4665,
29871,
29906,
29900,
29896,
29900,
338,
29871,
29896,
29955,
29896,
29929,
29900,
29953,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29896,
313,
13,
12,
29940,
290,
3381,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29953,
29946,
29929,
29945,
29955,
29918,
29906,
313,
13,
12,
29908,
29896,
303,
10769,
7348,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29906,
299,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29896,
303,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
310,
263,
4216,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
10769,
7348,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29896,
29906,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29896,
29947,
29906,
29906,
29918,
29945,
313,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
5823,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29900,
29896,
29945,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
310,
18481,
29908,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
1451,
8233,
1426,
29892,
13,
12,
29908,
15666,
31891,
29882,
29899,
30099,
29872,
29899,
29926,
30150,
29908,
1426,
29892,
13,
12,
29911,
549,
29891,
549,
1426,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
1426,
29892,
13,
12,
29950,
1384,
29884,
1426,
29892,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29896,
29900,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29946,
29947,
29900,
29946,
29918,
29945,
313,
13,
12,
6508,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
3306,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
5709,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1170,
278,
1353,
988,
4665,
29871,
29906,
29900,
29896,
29900,
338,
29871,
29896,
29955,
29896,
29929,
29900,
29953,
29952,
13,
28956,
2850,
13,
5097,
1939,
29889,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29900,
29896,
29945,
29918,
29906,
5754,
376,
12310,
2785,
313,
29906,
29900,
29896,
29900,
5513,
353,
525,
29896,
29955,
29896,
29929,
29900,
29953,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
1939,
29889,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29900,
29896,
29945,
29918,
29906,
5754,
376,
12310,
2785,
313,
29906,
29900,
29896,
29900,
5513,
353,
525,
29896,
29955,
29896,
29929,
29900,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the number where population 2010 is 171906`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10236830_1 (
Nomination text,
Director text,
"Film Name" text,
Country text,
"Actors Name" text
);
CREATE TABLE table_1_10664957_2 (
"1st players choice" text,
"Probability 2nd player wins" text,
"Probability 1st player wins" text,
"Probability of a draw" text,
"2nd players choice" text
);
CREATE TABLE table_1_11545282_12 (
Player text,
"Years for Jazz" text,
Position text,
"School/Club Team" text,
Nationality text
);
CREATE TABLE table_1_12161822_5 (
Report text,
"Rd." numeric,
"Winning driver" text,
"Fastest lap" text,
"Pole position" text,
"Winning constructor" text,
"Grand Prix" text
);
CREATE TABLE table_1_17015_2 (
"No. of villages" numeric,
"No." numeric,
Chinese text,
"Pe̍h-ōe-jī" text,
Tongyong text,
"Area (km²)" text,
Hanyu text,
"Population (2010)" numeric
);
CREATE TABLE table_1_11604804_5 (
Location text,
Institution text,
Color text,
Founded numeric,
Status text,
Nickname text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the number where population 2010 is 171906`
```sql
| SELECT No. FROM table_1_17015_2 WHERE "Population (2010)" = '171906' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
3564,
756,
3760,
29891,
830,
333,
408,
3495,
322,
23012,
29899,
1609,
29899,
6984,
7300,
29883,
1901,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29953,
29947,
29929,
29941,
29918,
29941,
313,
13,
12,
29908,
29925,
277,
1634,
272,
2153,
29908,
1426,
29892,
13,
12,
29908,
3306,
3440,
1061,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
6572,
29899,
25525,
3483,
858,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
8514,
1426,
29892,
13,
12,
29908,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29906,
29896,
29955,
29953,
29918,
29896,
313,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
10536,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
10536,
6536,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
29908,
16107,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
16107,
2921,
1338,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
11536,
2401,
29879,
313,
4035,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29947,
29946,
29896,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
12310,
2785,
313,
3596,
2207,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29934,
359,
296,
4077,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
855,
9716,
272,
412,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
18457,
3001,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29956,
279,
6669,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29954,
29880,
996,
497,
273,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29955,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
3564,
756,
3760,
29891,
830,
333,
408,
3495,
322,
23012,
29899,
1609,
29899,
6984,
7300,
29883,
1901,
29973,
29952,
13,
28956,
2850,
13,
5097,
8527,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29953,
29947,
29929,
29941,
29918,
29941,
5754,
376,
29931,
481,
29899,
1609,
29899,
6984,
29908,
306,
5265,
6059,
14210,
15838,
29891,
29995,
1123,
333,
29001,
5300,
376,
8514,
29908,
306,
5265,
6059,
14210,
15838,
29891,
29995,
1123,
333,
29001,
2
] | [
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,
5097,
8527,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29953,
29947,
29929,
29941,
29918,
29941,
5754,
376,
29931,
481,
29899,
1609,
29899,
6984,
29908,
306,
5265,
6059,
14210,
15838,
29891,
29995,
1123,
333,
29001,
5300,
376,
8514,
29908,
306,
5265,
6059,
14210,
15838,
29891,
29995,
1123,
333,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which network has Marty Reid as host and lap-by-lap broadcaster?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10716893_3 (
"Pit reporters" text,
"Color commentator(s)" text,
"Pre-race analyst" text,
Network text,
Year numeric,
Host text,
"Lap-by-lap" text
);
CREATE TABLE table_1_1112176_1 (
"Total Goals" numeric,
"FL Cup Goals" numeric,
"League Goals" numeric,
"FL Cup Apps (Sub)" numeric,
"League Apps (Sub)" numeric,
"Other Apps" numeric,
"FA Cup Apps (Sub)" text,
Division text,
"FA Cup Goals" numeric,
"Other Goals" numeric,
Season text,
"Total Apps (Sub)" text
);
CREATE TABLE table_1_12584173_1 (
"Population (Allora)" numeric,
"Population (Rosenthal)" numeric,
"Population (Stanthorpe)" numeric,
"Population (Region total)" numeric,
"Population (Warwick)" numeric,
"Population (Glengallan)" numeric
);
CREATE TABLE table_1_1140077_2 (
Date text,
Location text,
"Pole Position" text,
Report text,
Constructor text,
"Race Winner" text,
"Fastest Lap" text,
Race text,
Rnd numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which network has Marty Reid as host and lap-by-lap broadcaster?`
```sql
| SELECT Network FROM table_1_10716893_3 WHERE "Lap-by-lap" ILIKE '%Marty%Reid%' AND "Host" ILIKE '%Marty%Reid%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
11230,
9272,
340,
4621,
29915,
29879,
6588,
1121,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29955,
313,
13,
12,
2539,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29896,
29947,
29945,
29918,
29946,
313,
13,
12,
1170,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29946,
29889,
29941,
29900,
29908,
1426,
29892,
13,
12,
29908,
29946,
29889,
29946,
29945,
29908,
1426,
29892,
13,
12,
29908,
29946,
29889,
29945,
29945,
29908,
1426,
29892,
13,
12,
3591,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29900,
29946,
29947,
29918,
29896,
313,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
29908,
17734,
29914,
29931,
2209,
29908,
1426,
29892,
13,
12,
7967,
496,
1426,
29892,
13,
12,
21133,
475,
1426,
29892,
13,
12,
29908,
29928,
566,
2330,
323,
2707,
1032,
18416,
29908,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
748,
2235,
6541,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29929,
29896,
29945,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
11230,
9272,
340,
4621,
29915,
29879,
6588,
1121,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
15989,
8647,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29896,
29947,
29945,
29918,
29946,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
9713,
29995,
9102,
340,
4621,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
16884,
29954,
29898,
15989,
8647,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29896,
29947,
29945,
29918,
29946,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
9713,
29995,
9102,
340,
4621,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Anna Rogowska's average result?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11960944_7 (
Date text,
Record text,
Game numeric,
Team text,
Score text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"High assists" text
);
CREATE TABLE table_2_18569185_4 (
Name text,
Nationality text,
"4.30" text,
"4.45" text,
"4.55" text,
Result numeric
);
CREATE TABLE table_1_1165048_1 (
Season numeric,
Position numeric,
"Win/Loss" text,
Coach text,
Captain text,
"Dudley Tuckey Medal" text,
"Leading goalkicker" text
);
CREATE TABLE table_1_11621915_1 (
Tournament text,
Location text,
"Purse( $ )" numeric,
Winner text,
"1st Prize( $ )" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is Anna Rogowska's average result?`
```sql
| SELECT AVG(RESULT) FROM table_2_18569185_4 WHERE "Name" ILIKE '%anna%rogowska%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19087,
5253,
310,
399,
29903,
4590,
4105,
346,
10376,
5019,
750,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29941,
29953,
29929,
29953,
29947,
29953,
29906,
29918,
29953,
313,
13,
12,
29908,
7811,
4590,
274,
1161,
267,
29908,
16985,
29892,
13,
12,
29908,
7811,
4590,
2326,
11753,
29908,
1426,
29892,
13,
12,
29925,
374,
911,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
4763,
292,
29830,
2302,
29908,
16985,
29892,
13,
12,
29908,
15790,
2058,
29908,
1426,
29892,
13,
12,
29908,
7811,
4590,
4105,
346,
10376,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29955,
29953,
29947,
29947,
29918,
29896,
313,
13,
12,
29908,
9662,
2547,
292,
1238,
369,
29908,
16985,
29892,
13,
12,
12636,
497,
1129,
29916,
16985,
29892,
13,
12,
22995,
4568,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
21314,
561,
375,
16985,
29892,
13,
12,
29908,
21314,
561,
3398,
1238,
369,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29900,
29947,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
5371,
7803,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
2635,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
7803,
3001,
1776,
292,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
3001,
1776,
292,
29908,
16985,
29892,
13,
12,
29908,
29933,
5371,
3118,
22125,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29900,
29945,
29900,
29953,
29900,
29918,
29896,
313,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29945,
29900,
29941,
29946,
29918,
29945,
313,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29945,
313,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
19087,
5253,
310,
399,
29903,
4590,
4105,
346,
10376,
5019,
750,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
7811,
4590,
4105,
346,
10376,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29953,
29929,
29953,
29947,
29953,
29906,
29918,
29953,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
703,
7811,
4590,
4105,
346,
10376,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29953,
29929,
29953,
29947,
29953,
29906,
29918,
29953,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the smallest amount of WSOP bracelets anyone had?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_23696862_6 (
"WSOP cashes" numeric,
"WSOP earnings" text,
Prize text,
Name text,
"Starting chip count" numeric,
"Final place" text,
"WSOP bracelets" numeric
);
CREATE TABLE table_1_1007688_1 (
"Relapsing fever" numeric,
Smallpox numeric,
Malaria text,
Year text,
Typhus numeric,
"Typhoid fever" numeric
);
CREATE TABLE table_1_103084_4 (
"BBC Two Rank" text,
"Broadcast date" text,
"BBC Two total viewing" text,
"BBC One total viewing" numeric,
"BBC One Rank" text
);
CREATE TABLE table_1_10705060_1 (
Races numeric,
Poles numeric,
Position text,
Season text,
Series text,
Points numeric,
Wins numeric,
"Team Name" text
);
CREATE TABLE table_1_10975034_5 (
"Pick #" numeric,
College text,
"CFL Team" text,
Player text
);
CREATE TABLE table_1_11677691_5 (
Position text,
School text,
Hometown text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the smallest amount of WSOP bracelets anyone had?`
```sql
| SELECT MIN("WSOP bracelets") FROM table_1_23696862_6 |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
10435,
750,
263,
6257,
8666,
310,
29871,
29896,
29946,
29914,
29896,
322,
7688,
287,
29871,
29896,
29900,
29899,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29900,
29900,
29929,
29945,
29941,
29900,
29900,
29918,
29896,
313,
13,
12,
4557,
16985,
29892,
13,
12,
29967,
10119,
1426,
29892,
13,
12,
1625,
2470,
1426,
29892,
13,
12,
5323,
4983,
1426,
29892,
13,
12,
29908,
22676,
313,
303,
29892,
27981,
5513,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
22406,
16985,
29892,
13,
12,
28213,
1426,
29892,
13,
12,
29908,
4763,
292,
8666,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29953,
29955,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29955,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
10435,
750,
263,
6257,
8666,
310,
29871,
29896,
29946,
29914,
29896,
322,
7688,
287,
29871,
29896,
29900,
29899,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
4408,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29900,
29929,
29945,
29941,
29900,
29900,
29918,
29896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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4408,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29900,
29929,
29945,
29941,
29900,
29900,
29918,
29896,
5754,
376,
4763,
292,
8666,
29908,
306,
5265,
6059,
14210,
29896,
29946,
29914,
29896,
29001,
5300,
376,
22676,
313,
303,
29892,
27981,
5513,
306,
5265,
6059,
14210,
29896,
29900,
29899,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What horse had a starting price of 14/1 and weighted 10-7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_20095300_1 (
Number numeric,
Jockey text,
Colours text,
Trainer text,
"Weight (st, lb)" text,
Name text,
Age numeric,
Owner text,
"Starting price" text
);
CREATE TABLE table_1_12266757_1 (
"Womens doubles" text,
"Mens singles" text,
"Mixed doubles" text,
"Womens singles" text,
"Mens doubles" text,
Season text
);
CREATE TABLE table_1_11959669_7 (
Date text,
"High rebounds" text,
Record text,
"High assists" text,
"High points" text,
Team text,
Score text,
"Location Attendance" text,
Game numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What horse had a starting price of 14/1 and weighted 10-7?`
```sql
| SELECT Name FROM table_1_20095300_1 WHERE "Starting price" ILIKE '%14/1%' AND "Weight (st, lb)" ILIKE '%10-7%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19405,
1353,
988,
278,
7472,
24235,
338,
29871,
29946,
29900,
29900,
5654,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29955,
29945,
29945,
29945,
29896,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29896,
29947,
29906,
29941,
29947,
29918,
29896,
313,
13,
12,
29908,
29931,
293,
663,
1353,
29908,
1426,
29892,
13,
12,
6513,
1426,
29892,
13,
12,
29908,
28213,
29914,
6891,
29908,
1426,
29892,
13,
12,
29908,
1170,
313,
6360,
12969,
287,
5513,
1426,
29892,
13,
12,
29908,
7976,
12539,
24235,
29908,
1426,
29892,
13,
12,
29908,
4591,
29914,
517,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
19405,
1353,
988,
278,
7472,
24235,
338,
29871,
29946,
29900,
29900,
5654,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29931,
293,
663,
1353,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29896,
29947,
29906,
29941,
29947,
29918,
29896,
5754,
376,
7976,
12539,
24235,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29900,
29995,
4317,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
29931,
293,
663,
1353,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29896,
29947,
29906,
29941,
29947,
29918,
29896,
5754,
376,
7976,
12539,
24235,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29900,
29995,
4317,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the license number where the maximum diameter is 400 mm?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12275551_1 (
"Mixed doubles" text,
"Womens singles" text,
"Mens singles" text,
Year numeric,
"Mens doubles" text,
"Womens doubles" text
);
CREATE TABLE table_2_17918238_1 (
"Licence number" text,
Length text,
"Owner/operator" text,
"Name (year commissioned)" text,
"Maximum diameter" text,
"From/to" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the license number where the maximum diameter is 400 mm?`
```sql
| SELECT "Licence number" FROM table_2_17918238_1 WHERE "Maximum diameter" ILIKE '%400%mm%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2440,
1258,
360,
29893,
1662,
3879,
29878,
2285,
750,
263,
282,
312,
3109,
1135,
29871,
29900,
29889,
29941,
29947,
29929,
322,
28495,
3109,
1135,
29871,
29896,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29941,
313,
13,
12,
29908,
2539,
7802,
2669,
29908,
1426,
29892,
13,
12,
29911,
3409,
482,
16985,
29892,
13,
12,
29908,
1542,
310,
1383,
666,
29908,
1426,
29892,
13,
12,
29908,
2539,
411,
19811,
1233,
29908,
1426,
29892,
13,
12,
29908,
2713,
4512,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29896,
29941,
29946,
29947,
29945,
29918,
29941,
313,
13,
12,
12883,
29879,
1426,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
29908,
29925,
312,
1213,
16985,
29892,
13,
12,
2008,
7040,
16985,
29892,
13,
12,
1170,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
2440,
1258,
360,
29893,
1662,
3879,
29878,
2285,
750,
263,
282,
312,
3109,
1135,
29871,
29900,
29889,
29941,
29947,
29929,
322,
28495,
3109,
1135,
29871,
29896,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
23857,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29896,
29941,
29946,
29947,
29945,
29918,
29941,
5754,
376,
29925,
312,
1213,
529,
525,
29900,
29889,
29941,
29947,
29929,
29915,
5300,
376,
29931,
520,
29908,
529,
525,
29896,
29906,
29915,
5300,
376,
1170,
29908,
306,
5265,
6059,
14210,
28012,
1662,
29995,
12257,
29878,
2285,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
23857,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29896,
29941,
29946,
29947,
29945,
29918,
29941,
5754,
376,
29925,
312,
1213,
529,
525,
29900,
29889,
29941,
29947,
29929,
29915,
5300,
376,
29931,
520,
29908,
529,
525,
29896,
29906,
29915,
5300,
376,
1170,
29908,
306,
5265,
6059,
14210,
28012,
1662,
29995,
12257,
29878,
2285,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11662133_3 (
"Date entered service" text,
Tonnage numeric,
"Type of Ship" text,
"Date withdrawn" text,
"Ships name" text
);
CREATE TABLE table_2_14013485_3 (
Years text,
Lost numeric,
"Pct." numeric,
Seasons numeric,
Name text
);
```
### Answer
Here is the SQL query that answers the question:
`What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?`
```sql
| SELECT Years FROM table_2_14013485_3 WHERE "Pct." < '0.389' AND "Lost" < '12' AND "Name" ILIKE '%dwane%morrison%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2831,
607,
3564,
471,
12821,
5260,
1609,
278,
2927,
3440,
1061,
1156,
29871,
29896,
29929,
29929,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29906,
29947,
29900,
29906,
29906,
29918,
29941,
313,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
13454,
29899,
1609,
29899,
1456,
29908,
1426,
29892,
13,
12,
29908,
1625,
473,
3440,
1061,
29898,
29879,
5513,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29925,
1727,
420,
3495,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29900,
29896,
29896,
29941,
29941,
29918,
29896,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2831,
607,
3564,
471,
12821,
5260,
1609,
278,
2927,
3440,
1061,
1156,
29871,
29896,
29929,
29929,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
8527,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29906,
29947,
29900,
29906,
29906,
29918,
29941,
5754,
376,
12883,
29908,
1405,
525,
29896,
29929,
29929,
29900,
29915,
5300,
376,
1625,
473,
3440,
1061,
29898,
29879,
5513,
306,
5265,
6059,
14210,
305,
3780,
29995,
14625,
1609,
29001,
2
] | [
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,
5097,
8527,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29906,
29947,
29900,
29906,
29906,
29918,
29941,
5754,
376,
12883,
29908,
1405,
525,
29896,
29929,
29929,
29900,
29915,
5300,
376,
1625,
473,
3440,
1061,
29898,
29879,
5513,
306,
5265,
6059,
14210,
305,
3780,
29995,
14625,
1609,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`For which network was Chris Walby the color commentator after 1990?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17628022_3 (
Network text,
"Play-by-play" text,
"Colour commentator(s)" text,
Year numeric,
"Pregame host" text
);
CREATE TABLE table_1_10701133_1 (
"Directed by" text,
"Featured character(s)" text,
Title text,
"No. in season" numeric,
"Original air date" text,
"No. in series" numeric,
"U.S. viewers (million)" text,
"Written by" text
);
```
### Answer
Here is the SQL query that answers the question:
`For which network was Chris Walby the color commentator after 1990?`
```sql
| SELECT Network FROM table_2_17628022_3 WHERE "Year" > '1990' AND "Colour commentator(s)" ILIKE '%chris%walby%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
278,
23995,
296,
363,
3748,
29871,
29941,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29900,
29946,
29947,
29941,
29896,
29918,
29955,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29900,
29946,
29918,
29906,
313,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
17734,
1076,
1281,
18769,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29941,
29945,
29929,
29955,
29918,
29946,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29020,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29955,
313,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
471,
278,
23995,
296,
363,
3748,
29871,
29941,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29900,
29946,
29947,
29941,
29896,
29918,
29955,
5754,
376,
14199,
29908,
353,
525,
29941,
29900,
29915,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29900,
29946,
29947,
29941,
29896,
29918,
29955,
5754,
376,
14199,
29908,
353,
525,
29941,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was the opponent for game 30?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18904831_7 (
Game numeric,
Opponent text,
Location text,
Record text,
Date text,
"High assists" text,
Score text,
"High points" text,
"High rebounds" text
);
CREATE TABLE table_1_1137704_2 (
Round numeric,
"Winning Constructor" text,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
Report text,
Location text
);
CREATE TABLE table_1_10413597_4 (
"No. in series" numeric,
"Written by" text,
"No. in season" numeric,
Setting text,
"Directed by" text,
"Original air date" text,
Title text
);
CREATE TABLE table_1_11734041_17 (
"Years for Rockets" text,
Position text,
Player text,
"No.(s)" numeric,
"School/Club Team/Country" text,
"Height in Ft." text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was the opponent for game 30?`
```sql
| SELECT Opponent FROM table_2_18904831_7 WHERE "Game" = '30' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
7740,
29887,
29914,
29954,
393,
756,
263,
4408,
310,
23995,
1237,
29892,
322,
385,
382,
2416,
7968,
1135,
29871,
29896,
29906,
29929,
29889,
29955,
29941,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29896,
29946,
29955,
29955,
29906,
29918,
29896,
313,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29896,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29906,
29908,
1426,
29892,
13,
12,
1451,
3103,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29946,
29900,
29929,
29900,
29955,
29918,
29896,
313,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
29908,
11536,
21544,
313,
29906,
29900,
29900,
29945,
5513,
1426,
29892,
13,
12,
29908,
1666,
16719,
639,
12139,
29908,
16985,
29892,
13,
12,
29908,
20647,
603,
6554,
639,
29871,
29896,
29892,
29900,
29900,
29900,
2305,
29908,
16985,
29892,
13,
12,
29908,
8259,
6866,
1145,
29908,
16985,
29892,
13,
12,
29908,
7713,
625,
13049,
29908,
16985,
29892,
13,
12,
29908,
25733,
639,
2117,
2028,
29908,
1426,
29892,
13,
12,
29908,
7713,
625,
4889,
29908,
1426,
29892,
13,
12,
12310,
2785,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29906,
29953,
29929,
29929,
29900,
29918,
29896,
313,
13,
12,
29908,
11536,
11069,
29908,
16985,
29892,
13,
12,
29954,
388,
299,
801,
16985,
29892,
13,
12,
29924,
870,
431,
495,
29874,
16985,
29892,
13,
12,
7185,
517,
16985,
29892,
13,
12,
29923,
333,
4501,
1025,
16985,
29892,
13,
12,
5894,
719,
16985,
29892,
13,
12,
6970,
29887,
2162,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29946,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29947,
29906,
29953,
29929,
29946,
29918,
29955,
313,
13,
12,
29923,
2416,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29907,
1526,
29899,
4165,
29899,
2928,
29908,
1426,
29892,
13,
12,
29908,
12810,
29887,
29914,
29954,
29908,
16985,
29892,
13,
12,
29908,
19903,
29899,
10749,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
7740,
29887,
29914,
29954,
393,
756,
263,
4408,
310,
23995,
1237,
29892,
322,
385,
382,
2416,
7968,
1135,
29871,
29896,
29906,
29929,
29889,
29955,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
7520,
29954,
29914,
29954,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29947,
29906,
29953,
29929,
29946,
29918,
29955,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
9354,
265,
1237,
29001,
5300,
376,
29923,
2416,
29908,
529,
525,
29896,
29906,
29929,
29889,
29955,
29941,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
22753,
29898,
7520,
29954,
29914,
29954,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29947,
29906,
29953,
29929,
29946,
29918,
29955,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
9354,
265,
1237,
29001,
5300,
376,
29923,
2416,
29908,
529,
525,
29896,
29906,
29929,
29889,
29955,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11214772_1 (
Year text,
"Runner-Up" text,
"Semi-Finalist #1" text,
Location text,
Score text,
"Semi-Finalist #2" text,
Champion text
);
CREATE TABLE table_1_12340907_1 (
Municipality text,
"Total costs (2005)" text,
"Residents per officer" numeric,
"Crime rate per 1,000 people" numeric,
"Case burden" numeric,
"Police officers" numeric,
"Cost per capita" text,
"Police force" text,
Population numeric
);
CREATE TABLE table_1_12526990_1 (
"Total Region" numeric,
Gayndah numeric,
Mundubbera numeric,
Monto numeric,
Eidsvold numeric,
Perry numeric,
Biggenden numeric
);
CREATE TABLE table_1_11622496_1 (
"Purse( $ )" numeric,
Date text,
Winner text,
"1st Prize( $ )" text,
Tournament text
);
CREATE TABLE table_2_14982694_7 (
Effic numeric,
Name text,
"Cmp-Att-Int" text,
"Avg/G" numeric,
"GP-GS" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?`
```sql
| SELECT SUM(AVG/G) FROM table_2_14982694_7 WHERE "Name" ILIKE '%opponents%' AND "Effic" < '129.73' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
501,
29889,
29903,
29889,
6940,
403,
746,
278,
1629,
338,
1156,
29871,
29906,
29900,
29900,
29906,
322,
278,
6263,
338,
1985,
13175,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29955,
313,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29946,
29900,
29918,
29896,
313,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29955,
29953,
29947,
29947,
29918,
29896,
313,
13,
12,
29908,
21314,
561,
3398,
1238,
369,
29908,
16985,
29892,
13,
12,
29908,
9662,
2547,
292,
1238,
369,
29908,
16985,
29892,
13,
12,
22995,
4568,
1426,
29892,
13,
12,
12636,
497,
1129,
29916,
16985,
29892,
13,
12,
21314,
561,
375,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29929,
29955,
29941,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
29965,
29889,
29903,
29889,
18148,
29908,
1426,
29892,
13,
12,
29908,
29931,
347,
12685,
15431,
29908,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29954,
6170,
272,
1426,
29892,
13,
12,
1523,
415,
1825,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
4165,
25252,
4593,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
338,
278,
501,
29889,
29903,
29889,
6940,
403,
746,
278,
1629,
338,
1156,
29871,
29906,
29900,
29900,
29906,
322,
278,
6263,
338,
1985,
13175,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29965,
29889,
29903,
29889,
18148,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29929,
29955,
29941,
29955,
29941,
29918,
29896,
5754,
376,
12883,
29908,
1405,
525,
29906,
29900,
29900,
29906,
29915,
5300,
376,
7439,
29891,
29908,
306,
5265,
6059,
14210,
22899,
29995,
8302,
583,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
29965,
29889,
29903,
29889,
18148,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29929,
29955,
29941,
29955,
29941,
29918,
29896,
5754,
376,
12883,
29908,
1405,
525,
29906,
29900,
29900,
29906,
29915,
5300,
376,
7439,
29891,
29908,
306,
5265,
6059,
14210,
22899,
29995,
8302,
583,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the U.S. senate when the year is after 2002 and the party is working families?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10953197_7 (
"Production code" text,
Director text,
"No. in season" numeric,
Title text,
"Writer(s)" text,
"No. in series" numeric,
"Original air date" text
);
CREATE TABLE table_1_11622840_1 (
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Tournament text,
Location text,
Winner text,
Date text,
Score text
);
CREATE TABLE table_1_1007688_1 (
"Typhoid fever" numeric,
"Relapsing fever" numeric,
Malaria text,
Smallpox numeric,
Typhus numeric
);
CREATE TABLE table_2_16297373_1 (
"U.S. Senate" text,
"Lieutenant Governor" text,
Party text,
Governor text,
Comptroller text,
Year numeric,
"Attorney General" text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the U.S. senate when the year is after 2002 and the party is working families?`
```sql
| SELECT "U.S. Senate" FROM table_2_16297373_1 WHERE "Year" > '2002' AND "Party" ILIKE '%working%families%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
25039,
1299,
8519,
6093,
17067,
5194,
22659,
13764,
8079,
349,
3267,
22122,
5300,
349,
2965,
29968,
8079,
29871,
29906,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29941,
29953,
29906,
29941,
29941,
29918,
29896,
313,
13,
12,
29908,
29950,
3297,
776,
29914,
4504,
1507,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29946,
29941,
29947,
29945,
29918,
29896,
313,
13,
12,
29908,
2792,
6766,
29908,
1426,
29892,
13,
12,
1123,
6338,
1230,
1426,
29892,
13,
12,
29908,
22406,
313,
6360,
29879,
29892,
3841,
5513,
1426,
29892,
13,
12,
29908,
5044,
4712,
29908,
1426,
29892,
13,
12,
29908,
17946,
4712,
29908,
1426,
29892,
13,
12,
29908,
29950,
1709,
1840,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
7439,
29891,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29929,
313,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29945,
29941,
29918,
29896,
29900,
313,
13,
12,
29908,
23369,
1705,
9124,
29908,
1426,
29892,
13,
12,
29907,
10880,
1426,
29892,
13,
12,
29908,
29896,
11652,
29465,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29896,
3148,
29928,
29465,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
25039,
1299,
8519,
6093,
17067,
5194,
22659,
13764,
8079,
349,
3267,
22122,
5300,
349,
2965,
29968,
8079,
29871,
29906,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
8583,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29941,
29953,
29906,
29941,
29941,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
974,
29001,
5300,
376,
29925,
860,
29908,
353,
525,
29906,
29946,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
8583,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29941,
29953,
29906,
29941,
29941,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
974,
29001,
5300,
376,
29925,
860,
29908,
353,
525,
29906,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17836233_1 (
"Hometown/School" text,
Player text,
Team text,
Pick numeric,
Position text
);
CREATE TABLE table_1_10284385_1 (
"State served" text,
Representative text,
"Age (years, days)" text,
"End Date" text,
"Begin Date" text,
"House term" text,
"Date of birth" text,
Party text
);
CREATE TABLE table_1_11964154_9 (
"High assists" text,
Score text,
Record text,
Date text,
Game numeric,
"High rebounds" text,
"High points" text,
"Location Attendance" text
);
CREATE TABLE table_1_1222653_10 (
"Central bank" text,
Currency text,
"1 Euro =" text,
Country text,
"1 USD =" text
);
```
### Answer
Here is the SQL query that answers the question:
`WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?`
```sql
| SELECT Team FROM table_2_17836233_1 WHERE "Position" ILIKE '%of%' AND "Pick" = '24' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
15456,
29892,
746,
2522,
487,
338,
29871,
29955,
29900,
29899,
29955,
29941,
29922,
29896,
29946,
29941,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29947,
29900,
29945,
29955,
29945,
29918,
29896,
313,
13,
12,
29923,
781,
2200,
537,
16985,
29892,
13,
12,
29908,
3217,
29871,
29906,
448,
331,
2333,
29908,
16985,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
13,
12,
12415,
2028,
1426,
29892,
13,
12,
29908,
18213,
29889,
5864,
29908,
16985,
29892,
13,
12,
26382,
16985,
29892,
13,
12,
23665,
428,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29929,
29929,
29955,
29929,
29900,
29918,
29945,
313,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
15456,
29892,
746,
2522,
487,
338,
29871,
29955,
29900,
29899,
29955,
29941,
29922,
29896,
29946,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
15456,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29929,
29929,
29955,
29929,
29900,
29918,
29945,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29900,
29899,
29955,
29941,
29922,
29896,
29946,
29941,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
15456,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29929,
29929,
29955,
29929,
29900,
29918,
29945,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29900,
29899,
29955,
29941,
29922,
29896,
29946,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Country, when Score is 70-73=143?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10580575_1 (
Electricity numeric,
"CO 2 -emission" numeric,
"unnamed_0" numeric,
Capita text,
"Prim. energy" numeric,
Export numeric,
Production numeric
);
CREATE TABLE table_2_16299790_5 (
"To par" text,
Player text,
Country text,
Place text,
Score text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Country, when Score is 70-73=143?`
```sql
| SELECT Country FROM table_2_16299790_5 WHERE "Score" ILIKE '%70-73=143%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2533,
310,
2178,
29899,
2481,
29892,
746,
1913,
7289,
21018,
338,
3109,
1135,
29871,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29955,
29906,
29896,
29945,
29918,
29941,
313,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29934,
29881,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29896,
313,
13,
12,
29908,
2713,
4512,
1024,
29908,
1426,
29892,
13,
12,
29908,
29954,
2124,
323,
3409,
482,
29908,
16985,
29892,
13,
12,
29908,
1542,
310,
478,
25583,
29908,
1426,
29892,
13,
12,
29908,
10399,
287,
2669,
29908,
1426,
29892,
13,
12,
29908,
5044,
287,
2669,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29955,
29955,
29929,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
29941,
5499,
15484,
29908,
1426,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29906,
299,
15484,
29908,
1426,
29892,
13,
12,
29908,
29945,
386,
15484,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29896,
303,
15484,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29953,
29947,
29945,
29945,
29918,
29896,
313,
13,
12,
29924,
3930,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29925,
1745,
631,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29945,
29946,
29896,
29941,
29918,
29945,
313,
13,
12,
29908,
3596,
29899,
2230,
29908,
16985,
29892,
13,
12,
29908,
6730,
3611,
29908,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
8897,
3611,
29908,
16985,
29892,
13,
12,
29908,
6833,
7289,
21018,
29908,
16985,
29892,
13,
12,
29908,
6585,
21018,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29941,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
2533,
310,
2178,
29899,
2481,
29892,
746,
1913,
7289,
21018,
338,
3109,
1135,
29871,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
9818,
29899,
15307,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29945,
29946,
29896,
29941,
29918,
29945,
5754,
376,
6833,
7289,
21018,
29908,
529,
525,
29900,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
22753,
29898,
9818,
29899,
15307,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29945,
29946,
29896,
29941,
29918,
29945,
5754,
376,
6833,
7289,
21018,
29908,
529,
525,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the sum of All-Time, when Amateur Era is less than 0?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10527215_3 (
"Winning driver" text,
"Winning team" text,
Rd numeric,
"Fastest Lap" text,
Report text,
Name text,
"Pole Position" text
);
CREATE TABLE table_1_11662133_1 (
"Ships name" text,
"Gross Tonnage" numeric,
"Type of Vessel" text,
"Entered service" text,
"Ended service" text
);
CREATE TABLE table_1_11577996_1 (
"3rd Place" text,
"4th Place" text,
Year numeric,
"2nd Place" text,
"5th Place" text,
Location text,
"1st Place" text
);
CREATE TABLE table_1_10566855_1 (
Margin numeric,
Venue text,
Season numeric,
Score text,
Attendance numeric,
Premier text,
"Runner-up" text
);
CREATE TABLE table_2_1725413_5 (
"All-time" numeric,
"First title" numeric,
Country text,
"Last title" numeric,
"Amateur Era" numeric,
"Open Era" numeric
);
CREATE TABLE table_1_11677691_3 (
Player text,
Hometown text,
College text,
Position text,
School text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the sum of All-Time, when Amateur Era is less than 0?`
```sql
| SELECT SUM(ALL-TIME) FROM table_2_1725413_5 WHERE "Amateur Era" < '0' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
10875,
386,
1398,
29915,
29879,
3448,
10907,
23995,
1237,
8158,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29929,
29941,
29941,
29918,
29896,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29947,
29896,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
29943,
473,
386,
8905,
29908,
1426,
29892,
13,
12,
29908,
11863,
8905,
29908,
1426,
29892,
13,
12,
20622,
29879,
1426,
29892,
13,
12,
29908,
1349,
1823,
8905,
29908,
1426,
29892,
13,
12,
29908,
6730,
8905,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
10875,
386,
1398,
29915,
29879,
3448,
10907,
23995,
1237,
8158,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29909,
1582,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29929,
29941,
29941,
29918,
29896,
29906,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
29882,
1450,
386,
1398,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
29909,
1582,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29929,
29941,
29941,
29918,
29896,
29906,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
29882,
1450,
386,
1398,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was Hawthorn's away teams opponents score?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10808933_12 (
Date text,
"Away team" text,
Venue text,
"Home team" text,
Crowd numeric,
"Away team score" text,
"Home team score" text
);
CREATE TABLE table_1_12148147_2 (
"Fourth Year" text,
"Second Year" text,
Subjects text,
"Third Year" text,
"First Year" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was Hawthorn's away teams opponents score?`
```sql
| SELECT "Away team score" FROM table_2_10808933_12 WHERE "Home team" ILIKE '%hawthorn%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2099,
1353,
310,
26091,
363,
15586,
4616,
1094,
1562,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29947,
29941,
29955,
29953,
29953,
29918,
29896,
29906,
313,
13,
12,
29908,
2539,
310,
350,
7515,
313,
22406,
5513,
1426,
29892,
13,
12,
29908,
6821,
431,
29914,
16123,
1239,
29908,
1426,
29892,
13,
12,
29907,
2547,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29955,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29945,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
9485,
538,
713,
341,
30107,
29873,
31056,
29895,
30107,
29908,
1426,
29892,
13,
12,
4806,
481,
265,
1426,
29892,
13,
12,
13696,
441,
1426,
29892,
13,
12,
29924,
424,
336,
1426,
29892,
13,
12,
29908,
29954,
336,
2350,
313,
20334,
300,
5513,
1426,
29892,
13,
12,
21602,
1426,
29892,
13,
12,
1170,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29900,
29953,
29947,
29941,
29900,
29918,
29896,
313,
13,
12,
29908,
7976,
402,
2124,
1334,
523,
29908,
1426,
29892,
13,
12,
29908,
7976,
8086,
4309,
9382,
29908,
1426,
29892,
13,
12,
29908,
11536,
8086,
4038,
29908,
1426,
29892,
13,
12,
9868,
1426,
29892,
13,
12,
29909,
12664,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
2099,
1353,
310,
26091,
363,
15586,
4616,
1094,
1562,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
29907,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29947,
29941,
29955,
29953,
29953,
29918,
29896,
29906,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
719,
4616,
29995,
294,
1562,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
16884,
29954,
29898,
29907,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29947,
29941,
29955,
29953,
29953,
29918,
29896,
29906,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
719,
4616,
29995,
294,
1562,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the mean number of caps for Ryota Asano?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_11783766_12 (
"Date of Birth (Age)" text,
"Club/province" text,
Caps numeric,
Position text,
Player text
);
CREATE TABLE table_1_10015132_7 (
"School/Club Team" text,
"Years in Toronto" text,
Nationality text,
"No." numeric
);
CREATE TABLE table_1_100518_1 (
"Guardian Mātṛkā" text,
Weapon text,
Consort text,
Mantra text,
"Graha (Planet)" text,
Direction text,
Name text
);
CREATE TABLE table_1_10006830_1 (
"Max Gross Weight" text,
"Max disk Loading" text,
"Total disk area" text,
Description text,
Aircraft text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the mean number of caps for Ryota Asano?`
```sql
| SELECT AVG(Caps) FROM table_2_11783766_12 WHERE "Player" ILIKE '%ryota%asano%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
4797,
363,
12726,
329,
8245,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29941,
29896,
29953,
29918,
29896,
313,
13,
12,
29908,
8893,
2635,
29908,
1426,
29892,
13,
12,
29908,
7094,
1288,
12271,
29898,
29879,
5513,
1426,
29892,
13,
12,
4205,
3283,
1426,
29892,
13,
12,
29908,
9125,
1353,
29908,
1426,
29892,
13,
12,
29908,
29956,
10552,
24628,
313,
3750,
371,
12640,
1723,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29900,
29906,
29896,
29955,
29947,
29896,
29896,
29918,
29896,
313,
13,
12,
29923,
781,
272,
403,
1426,
29892,
13,
12,
29908,
21870,
4170,
9173,
29908,
1426,
29892,
13,
12,
17923,
1426,
29892,
13,
12,
14470,
573,
1426,
29892,
13,
12,
27325,
1426,
29892,
13,
12,
16107,
1426,
29892,
13,
12,
29908,
4373,
13450,
3824,
29908,
1426,
29892,
13,
12,
24599,
1426,
29892,
13,
12,
28632,
473,
1426,
29892,
13,
12,
29908,
2525,
1573,
16367,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29906,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
3563,
497,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1170,
278,
4797,
363,
12726,
329,
8245,
29952,
13,
28956,
2850,
13,
5097,
405,
8098,
1964,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29906,
29896,
29955,
29947,
29896,
29896,
29918,
29896,
5754,
376,
29923,
781,
272,
403,
29908,
306,
5265,
6059,
14210,
29934,
326,
329,
8245,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
405,
8098,
1964,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29906,
29896,
29955,
29947,
29896,
29896,
29918,
29896,
5754,
376,
29923,
781,
272,
403,
29908,
306,
5265,
6059,
14210,
29934,
326,
329,
8245,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the national for rimutaka`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1057316_1 (
"Build date" text,
"Operational owner(s)" text,
Disposition text,
"Serial number" text,
"Wheel arrangement ( Whyte notation )" text
);
CREATE TABLE table_1_20217811_1 (
Electorate text,
"Maori Party" text,
ACT text,
Progressive text,
National text,
Other text,
"New Zealand First" text,
Green text,
Labour text,
"United Future" text
);
CREATE TABLE table_1_11803648_21 (
Player text,
Position text,
Nationality text,
Round numeric,
Overall text,
"Club team" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the national for rimutaka`
```sql
| SELECT NATIONAL FROM table_1_20217811_1 WHERE "Electorate" ILIKE '%Rimutaka%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
7688,
310,
278,
24334,
1304,
297,
263,
1334,
1624,
1609,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29896,
313,
13,
12,
29908,
29902,
893,
434,
20743,
313,
7838,
9601,
7542,
2450,
4312,
4514,
29908,
1426,
29892,
13,
12,
29908,
29902,
893,
434,
20743,
313,
28116,
5513,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
29908,
29924,
524,
482,
313,
28116,
5513,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
524,
482,
313,
7838,
9601,
7542,
2450,
4312,
4514,
29908,
1426,
29892,
13,
12,
9986,
391,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29896,
29900,
29941,
29955,
29953,
29918,
29896,
313,
13,
12,
4435,
1426,
29892,
13,
12,
29908,
29924,
18813,
280,
5864,
29908,
1426,
29892,
13,
12,
25233,
8605,
1426,
29892,
13,
12,
29908,
29933,
352,
1026,
7688,
29908,
1426,
29892,
13,
12,
29908,
29924,
18813,
280,
12885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29945,
29918,
29906,
313,
13,
12,
6508,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29955,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
8003,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
7688,
310,
278,
24334,
1304,
297,
263,
1334,
1624,
1609,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29933,
352,
1026,
7688,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29896,
29900,
29941,
29955,
29953,
29918,
29896,
5754,
376,
4435,
29908,
306,
5265,
6059,
14210,
4806,
1624,
1609,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
29933,
352,
1026,
7688,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29896,
29900,
29941,
29955,
29953,
29918,
29896,
5754,
376,
4435,
29908,
306,
5265,
6059,
14210,
4806,
1624,
1609,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the weight of the bullet used in a Weatherby?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11916083_1 (
"Issue Price (BU)[ clarification needed ]" text,
"Issue Price (Proof)" text,
Theme text,
"Mintage (Proof)" text,
Year numeric,
"Mintage (BU)[ clarification needed ]" text,
Artist text
);
CREATE TABLE table_1_16010376_1 (
Source text,
"Muzzle energy" text,
Cartridge text,
"Bullet weight" text,
"Muzzle velocity" text
);
CREATE TABLE table_1_1140085_2 (
Location text,
Report text,
"Pole Position" text,
Race text,
"Race Winner" text,
Rnd numeric,
"Fastest Lap" text,
Date text,
Constructor text
);
CREATE TABLE table_1_1213511_7 (
"College/junior/club team" text,
"NHL team" text,
Player text,
Nationality text,
"Pick #" numeric,
Position text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the weight of the bullet used in a Weatherby?`
```sql
| SELECT "Bullet weight" FROM table_1_16010376_1 WHERE "Source" ILIKE '%Weatherby%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1473,
1353,
746,
515,
338,
7536,
304,
29871,
29906,
29900,
29900,
29953,
322,
278,
4654,
29879,
1353,
471,
29871,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29955,
29945,
29941,
29906,
29929,
29918,
29946,
313,
13,
12,
22150,
16985,
29892,
13,
12,
4591,
16985,
29892,
13,
12,
29965,
20233,
16985,
29892,
13,
12,
27535,
1426,
29892,
13,
12,
1349,
1823,
29879,
1426,
29892,
13,
12,
29911,
277,
793,
1426,
29892,
13,
12,
1170,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29900,
29906,
29906,
29929,
29946,
29918,
29896,
313,
13,
12,
29908,
29928,
1078,
6136,
29908,
1426,
29892,
13,
12,
29956,
513,
5965,
5779,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
10923,
545,
1426,
29892,
13,
12,
29908,
29928,
314,
482,
313,
3308,
29928,
5513,
1426,
29892,
13,
12,
5620,
29879,
1426,
29892,
13,
12,
29908,
29909,
12588,
15201,
29908,
1426,
29892,
13,
12,
29908,
15666,
557,
12965,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29945,
29896,
29896,
29900,
29918,
29955,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
12739,
319,
19698,
29908,
1426,
29892,
13,
12,
29908,
29954,
1280,
7412,
287,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
29931,
15806,
16985,
29892,
13,
12,
8140,
2667,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
9075,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1473,
1353,
746,
515,
338,
7536,
304,
29871,
29906,
29900,
29900,
29953,
322,
278,
4654,
29879,
1353,
471,
29871,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
6440,
29879,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29955,
29945,
29941,
29906,
29929,
29918,
29946,
5754,
376,
4591,
29908,
529,
525,
29906,
29900,
29900,
29953,
29915,
5300,
376,
1349,
1823,
29879,
29908,
306,
5265,
6059,
14210,
29946,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
6440,
29879,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29955,
29945,
29941,
29906,
29929,
29918,
29946,
5754,
376,
4591,
29908,
529,
525,
29906,
29900,
29900,
29953,
29915,
5300,
376,
1349,
1823,
29879,
29908,
306,
5265,
6059,
14210,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the second number when from is prior to 2006 and the thirds number was 4?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_11775329_4 (
Place numeric,
From numeric,
Until numeric,
Seconds text,
Thirds text,
Titles text,
Name text
);
CREATE TABLE table_1_10602294_1 (
"Dates active" text,
Windspeeds text,
Deaths text,
Pressure text,
"Damage (USD)" text,
Refs text,
"Areas affected" text,
"Peak classification" text
);
CREATE TABLE table_1_1255110_7 (
"No." numeric,
Club text,
"GA Average" text,
"Games Played" numeric,
"Goals Against" numeric,
Loses numeric,
Minutes numeric,
Wins numeric,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the second number when from is prior to 2006 and the thirds number was 4?`
```sql
| SELECT Seconds FROM table_2_11775329_4 WHERE "From" < '2006' AND "Thirds" ILIKE '%4%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1353,
310,
278,
4823,
4257,
29871,
232,
178,
169,
30993,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29906,
313,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29947,
29941,
29929,
29946,
29918,
29946,
29941,
313,
13,
12,
2517,
29882,
23586,
1426,
29892,
13,
12,
29908,
23577,
1426,
29892,
13,
12,
29908,
1576,
14165,
29916,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29941,
29906,
313,
11083,
1162,
792,
5513,
1426,
29892,
13,
12,
22633,
1426,
29892,
13,
12,
8654,
575,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29857,
554,
13493,
1426,
29892,
13,
12,
29908,
25627,
8315,
518,
855,
2579,
1317,
5586,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29953,
29945,
29946,
29955,
29918,
29896,
313,
13,
12,
17936,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
2499,
2404,
1024,
29908,
1426,
29892,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
29892,
13,
12,
29908,
29924,
1175,
272,
11395,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29953,
29947,
29929,
29941,
29918,
29941,
313,
13,
12,
29908,
6572,
29899,
25525,
3483,
858,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
29892,
13,
12,
8514,
1426,
29892,
13,
12,
29908,
29925,
277,
1634,
272,
2153,
29908,
1426,
29892,
13,
12,
29908,
3306,
3440,
1061,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29953,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29946,
29896,
29955,
29906,
29953,
29918,
29896,
313,
13,
12,
29928,
20556,
1426,
29892,
13,
12,
29903,
5621,
1426,
29892,
13,
12,
29908,
1170,
310,
278,
4823,
29908,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
29908,
11885,
310,
278,
4823,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1353,
310,
278,
4823,
4257,
29871,
232,
178,
169,
30993,
29973,
29952,
13,
28956,
2850,
13,
5097,
9681,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29946,
29896,
29955,
29906,
29953,
29918,
29896,
5754,
376,
1170,
310,
278,
4823,
29908,
306,
5265,
6059,
14210,
232,
178,
169,
30993,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
9681,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29946,
29896,
29955,
29906,
29953,
29918,
29896,
5754,
376,
1170,
310,
278,
4823,
29908,
306,
5265,
6059,
14210,
232,
178,
169,
30993,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the number of the song named 實情?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1012730_2 (
"Avg. Finish" text,
Wins numeric,
Position text,
"Top 10" numeric,
"Team(s)" text,
Poles numeric,
"Top 5" numeric,
Year numeric,
Winnings text,
Starts numeric,
"Avg. Start" text
);
CREATE TABLE table_1_1108394_43 (
Manhattan text,
"%" text,
"The Bronx" text,
"1932 (before recount)" text,
party text,
Queens text,
Total numeric,
Brooklyn text,
"Richmond [Staten Is.]" text
);
CREATE TABLE table_1_10416547_1 (
Track text,
Duration text,
"Track title" text,
Date text,
"Album name" text,
"Music genre/style" text,
"Lyrics theme/style" text,
Lyricist text,
"Major instrument(s)" text
);
CREATE TABLE table_1_10716893_3 (
"Pre-race analyst" text,
Network text,
"Lap-by-lap" text,
Host text,
"Pit reporters" text,
"Color commentator(s)" text
);
CREATE TABLE table_1_10953197_6 (
Title text,
"No. in series" numeric,
Director text,
"No. in season" numeric,
"Original air date" text,
"Writer(s)" text,
"Production code" text
);
CREATE TABLE table_2_12341726_1 (
Drama text,
Singer text,
"Name of the song" text,
Number numeric,
"Kind of the song" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the number of the song named 實情?`
```sql
| SELECT Number FROM table_2_12341726_1 WHERE "Name of the song" ILIKE '%實情%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
471,
278,
6939,
12990,
654,
2635,
363,
278,
12990,
654,
4272,
515,
278,
12720,
263,
2859,
373,
6339,
29871,
29906,
29892,
29871,
29906,
29900,
29896,
29896,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29929,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29955,
29946,
29945,
29945,
29947,
29953,
29955,
29918,
29896,
313,
13,
12,
29908,
6730,
12990,
654,
2635,
29908,
1426,
29892,
13,
12,
29908,
29909,
566,
654,
6003,
434,
29908,
1426,
29892,
13,
12,
29908,
29954,
1025,
264,
16892,
1691,
29908,
1426,
29892,
13,
12,
29908,
29909,
566,
654,
4272,
29908,
1426,
29892,
13,
12,
29908,
10717,
6003,
434,
29908,
1426,
29892,
13,
12,
29908,
29923,
12907,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
10717,
12990,
654,
2635,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
10401,
471,
278,
6939,
12990,
654,
2635,
363,
278,
12990,
654,
4272,
515,
278,
12720,
263,
2859,
373,
6339,
29871,
29906,
29892,
29871,
29906,
29900,
29896,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
10717,
12990,
654,
2635,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29946,
29945,
29945,
29947,
29953,
29955,
29918,
29896,
5754,
376,
29923,
12907,
4799,
2635,
29908,
306,
5265,
6059,
14210,
29943,
3205,
653,
29995,
29906,
24163,
29906,
29900,
29896,
29896,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
10717,
12990,
654,
2635,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29946,
29945,
29945,
29947,
29953,
29955,
29918,
29896,
5754,
376,
29923,
12907,
4799,
2635,
29908,
306,
5265,
6059,
14210,
29943,
3205,
653,
29995,
29906,
24163,
29906,
29900,
29896,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When was the callback audition date for the audition city from the episode aired on February 2, 2011?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677691_9 (
School text,
Hometown text,
Position text,
Player text,
College text
);
CREATE TABLE table_1_27455867_1 (
"First audition date" text,
"Audition venue" text,
"Golden tickets" text,
"Audition city" text,
"Callback venue" text,
"Episode air date" text,
"Callback audition date" text
);
```
### Answer
Here is the SQL query that answers the question:
`When was the callback audition date for the audition city from the episode aired on February 2, 2011?`
```sql
| SELECT "Callback audition date" FROM table_1_27455867_1 WHERE "Episode air date" ILIKE '%February%2,%2011%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2635,
1258,
278,
3815,
1708,
373,
4723,
29871,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29929,
29941,
29953,
29955,
29918,
29941,
313,
13,
12,
29908,
7129,
287,
3026,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
1451,
11768,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
3057,
29899,
29873,
5790,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29900,
29941,
29953,
29946,
29918,
29906,
313,
13,
12,
29908,
29903,
735,
11959,
313,
25006,
5513,
16985,
29892,
13,
12,
29908,
5531,
27577,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
5145,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
29878,
3631,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
1273,
29908,
1426,
29892,
13,
12,
29908,
29954,
798,
386,
313,
29896,
29929,
29929,
29896,
29994,
29906,
29900,
29900,
29896,
5513,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
7827,
5513,
16985,
29892,
13,
12,
29908,
24938,
4135,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
9662,
335,
2738,
2318,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29953,
313,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29947,
29896,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
1349,
1823,
8905,
29908,
1426,
29892,
13,
12,
29908,
6730,
8905,
29908,
1426,
29892,
13,
12,
29908,
11863,
8905,
29908,
1426,
29892,
13,
12,
29908,
29943,
473,
386,
8905,
29908,
1426,
29892,
13,
12,
20622,
29879,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29906,
29955,
29947,
29947,
29945,
29947,
29918,
29906,
313,
13,
12,
29908,
19409,
2407,
29908,
1426,
29892,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29968,
860,
2696,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
15790,
8158,
29908,
1426,
29892,
13,
12,
22606,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
2635,
1258,
278,
3815,
1708,
373,
4723,
29871,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29906,
29955,
29947,
29947,
29945,
29947,
29918,
29906,
5754,
376,
22606,
29908,
353,
525,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
4712,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29906,
29955,
29947,
29947,
29945,
29947,
29918,
29906,
5754,
376,
22606,
29908,
353,
525,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What date did the team play on week 8?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10749367_3 (
"Passed?" text,
"Air Date" text,
Challenge text,
Winner text,
"Test-taker" text,
"#" numeric
);
CREATE TABLE table_1_10710364_2 (
"Sex ratio (urban)" numeric,
"Work participation (%)" text,
"Sex ratio (child)" numeric,
"Sex ratio (rural)" numeric,
"Population %" text,
"Growth (1991–2001)" text,
"Sex ratio (total)" numeric,
"Literacy (%)" text,
"Religious group" text
);
CREATE TABLE table_1_11960944_6 (
"High assists" text,
"Location Attendance" text,
Record text,
Team text,
Score text,
"High points" text,
"High rebounds" text,
Game numeric
);
CREATE TABLE table_1_12148147_2 (
"Third Year" text,
"First Year" text,
"Second Year" text,
"Fourth Year" text,
Subjects text
);
CREATE TABLE table_1_24278858_2 (
"Team record" text,
"Game site" text,
Attendance numeric,
Date text,
Kickoff text,
Opponent text,
"Final score" text,
Week numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What date did the team play on week 8?`
```sql
| SELECT Date FROM table_1_24278858_2 WHERE "Week" = '8' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
3402,
363,
278,
4234,
443,
1573,
20748,
373,
29871,
29906,
29900,
4725,
4950,
29871,
29906,
29900,
29900,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29946,
29906,
29946,
29955,
29955,
29947,
29918,
29953,
313,
13,
12,
29908,
29907,
3968,
434,
1939,
1213,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
4775,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29953,
29945,
29946,
29955,
29918,
29896,
313,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
29924,
1175,
272,
11395,
29898,
29879,
5513,
1426,
29892,
13,
12,
17936,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
29908,
2499,
2404,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29900,
29953,
29941,
29906,
29918,
29896,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
338,
278,
3402,
363,
278,
4234,
443,
1573,
20748,
373,
29871,
29906,
29900,
4725,
4950,
29871,
29906,
29900,
29900,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
19191,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29946,
29906,
29946,
29955,
29955,
29947,
29918,
29953,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
9292,
3129,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29995,
20082,
4950,
29995,
29906,
29900,
29900,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
19191,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29946,
29906,
29946,
29955,
29955,
29947,
29918,
29953,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
9292,
3129,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29995,
20082,
4950,
29995,
29906,
29900,
29900,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the format for the country united kingdom on 20 october 2008?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18424778_6 (
"Catalogue No." text,
Format text,
Date text,
Label text,
Country text
);
CREATE TABLE table_1_10416547_1 (
"Music genre/style" text,
"Lyrics theme/style" text,
Lyricist text,
Duration text,
"Major instrument(s)" text,
Track text,
"Track title" text,
"Album name" text
);
CREATE TABLE table_1_1130632_1 (
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text,
"Featured character(s)" text,
Title text,
"Directed by" text,
"No. in series" numeric
);
CREATE TABLE table_1_11964263_13 (
"High rebounds" text,
"Location Attendance" text,
"High points" text,
Series text,
"High assists" text,
Team text,
Score text,
Game numeric
);
```
### Answer
Here is the SQL query that answers the question:
`what is the format for the country united kingdom on 20 october 2008?`
```sql
| SELECT Format FROM table_2_18424778_6 WHERE "Country" ILIKE '%united%kingdom%' AND "Date" ILIKE '%20%october%2008%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4847,
471,
278,
6375,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29906,
29896,
29929,
29953,
29945,
29918,
29896,
29945,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
1394,
28514,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29945,
313,
13,
12,
29908,
29965,
29896,
29945,
29871,
29946,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
6585,
29871,
29896,
303,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29896,
303,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29906,
299,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29953,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29945,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
6585,
29871,
29906,
299,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29896,
303,
6599,
29908,
1426,
29892,
13,
12,
29907,
3973,
16985,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29941,
5499,
15682,
29908,
1426,
29892,
13,
12,
29908,
6585,
29871,
29941,
5499,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29941,
5499,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29906,
299,
6599,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29900,
29946,
29955,
29918,
29953,
313,
13,
12,
9182,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
11184,
1426,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
885,
9386,
29908,
1426,
29892,
13,
12,
855,
276,
557,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29906,
29896,
29906,
29900,
29947,
29918,
29896,
313,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
4847,
471,
278,
6375,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29906,
29896,
29929,
29953,
29945,
29918,
29896,
29945,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
11333,
29001,
2
] | [
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29906,
29896,
29929,
29953,
29945,
29918,
29896,
29945,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
11333,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which player was the forward?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15621965_15 (
"School/Club Team" text,
Position text,
"Years in Orlando" text,
Nationality text,
Player text
);
CREATE TABLE table_1_11318462_5 (
"U15 4th IV" text,
"Open 1st VIII" text,
"U16 1st VIII" text,
"U16 2nd VIII" text,
"U15 6th IV" text,
"U15 5th IV" text,
"Open 2nd VIII" text,
"U15 1st IV" text,
Crew numeric,
"U16 3rd VIII" text,
"Open 3rd VIII" text,
"U15 3rd IV" text,
"U15 2nd IV" text
);
CREATE TABLE table_1_11964047_6 (
Record text,
Attendance text,
"#" numeric,
Home text,
Visitor text,
Score text,
Date text,
"Leading scorer" text,
Streak text
);
CREATE TABLE table_1_12121208_1 (
"Womens doubles" text,
"Mixed doubles" text,
"Womens singles" text,
"Mens doubles" text,
"Mens singles" text,
Year numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which player was the forward?`
```sql
| SELECT Player FROM table_2_15621965_15 WHERE "Position" ILIKE '%forward%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
6251,
756,
278,
9939,
425,
567,
310,
1906,
411,
5823,
3080,
18015,
448,
383,
898,
2527,
284,
29892,
7156,
14440,
5739,
29948,
29892,
322,
263,
6856,
7200,
1135,
29871,
29906,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29941,
29941,
29929,
29945,
29918,
29906,
313,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
12376,
1426,
29892,
13,
12,
5756,
16985,
29892,
13,
12,
29908,
2481,
29914,
8015,
2859,
29908,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29946,
29900,
29953,
29945,
29918,
29906,
313,
13,
12,
29908,
1123,
1658,
363,
1735,
29908,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29908,
2539,
29433,
409,
630,
29908,
1426,
29892,
13,
12,
14191,
272,
1426,
29892,
13,
12,
29963,
562,
1061,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
6251,
756,
278,
9939,
425,
567,
310,
1906,
411,
5823,
3080,
18015,
448,
383,
898,
2527,
284,
29892,
7156,
14440,
5739,
29948,
29892,
322,
263,
6856,
7200,
1135,
29871,
29906,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29931,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29941,
29941,
29929,
29945,
29918,
29906,
5754,
376,
23770,
29908,
306,
5265,
6059,
14210,
1195,
18015,
29995,
19222,
29888,
898,
2527,
284,
29001,
5300,
376,
12376,
29908,
306,
5265,
6059,
14210,
3034,
29883,
29995,
1885,
29948,
29001,
5300,
376,
5756,
29908,
1405,
525,
29906,
29900,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
29898,
29931,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29941,
29941,
29929,
29945,
29918,
29906,
5754,
376,
23770,
29908,
306,
5265,
6059,
14210,
1195,
18015,
29995,
19222,
29888,
898,
2527,
284,
29001,
5300,
376,
12376,
29908,
306,
5265,
6059,
14210,
3034,
29883,
29995,
1885,
29948,
29001,
5300,
376,
5756,
29908,
1405,
525,
29906,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1123395_2 (
Laps numeric,
Driver text,
Grid numeric,
"Time/Retired" text,
Constructor text
);
CREATE TABLE table_1_1204065_2 (
"Reason for change" text,
District text,
"Date successor seated" text,
Successor text,
Vacator text
);
```
### Answer
Here is the SQL query that answers the question:
`Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?`
```sql
| SELECT MAX(Laps) FROM table_2_1123395_2 WHERE "Constructor" ILIKE '%minardi%-%fondmetal%' AND "Driver" ILIKE '%marc%gené%' AND "Grid" > '20' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
7457,
471,
278,
5528,
3774,
296,
23762,
476,
5422,
515,
29973,
29871,
673,
29901,
29871,
8046,
29871,
29946,
386,
6474,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29955,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29955,
29955,
29900,
29896,
29918,
29945,
313,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
29992,
29878,
3358,
5513,
1426,
29892,
13,
12,
29908,
21472,
313,
567,
5513,
16985,
29892,
13,
12,
29908,
4205,
29886,
9552,
313,
4912,
30168,
5513,
16985,
29892,
13,
12,
29908,
12412,
775,
29908,
1426,
29892,
13,
12,
29908,
3195,
1024,
29908,
1426,
29892,
13,
12,
20001,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29955,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29953,
29896,
29896,
29947,
29918,
29945,
313,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
7457,
471,
278,
5528,
3774,
296,
23762,
476,
5422,
515,
29973,
29871,
673,
29901,
29871,
8046,
29871,
29946,
386,
6474,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29928,
6801,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29953,
29896,
29896,
29947,
29918,
29945,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,
14210,
27501,
2482,
29995,
29968,
5422,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
29928,
6801,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29953,
29896,
29896,
29947,
29918,
29945,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,
14210,
27501,
2482,
29995,
29968,
5422,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which District was the incumbent Julius Kahn from? Answer: California 4th district`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10953197_7 (
"No. in season" numeric,
Title text,
Director text,
"Writer(s)" text,
"Production code" text,
"No. in series" numeric,
"Original air date" text
);
CREATE TABLE table_1_1147701_5 (
"Torque (Nm@rpm)" text,
"Power (ps)" numeric,
"Displacement (cm³)" numeric,
"Engine code" text,
"Model name" text,
Comment text
);
CREATE TABLE table_1_11630008_7 (
"Directed by" text,
"Season #" numeric,
"Written by" text,
"Production code" numeric,
"Series #" numeric
);
CREATE TABLE table_1_1346118_5 (
Party text,
Incumbent text,
"First elected" numeric,
Result text,
District text,
Candidates text
);
```
### Answer
Here is the SQL query that answers the question:
`Which District was the incumbent Julius Kahn from? Answer: California 4th district`
```sql
| SELECT COUNT(District) FROM table_1_1346118_5 WHERE "Incumbent" ILIKE '%Julius%Kahn%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
931,
363,
278,
4768,
446,
313,
29946,
29900,
8848,
29897,
746,
278,
2381,
326,
313,
29896,
29889,
29945,
8848,
29897,
338,
29871,
29896,
29929,
29901,
29945,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29947,
29945,
29929,
29946,
29955,
29918,
29941,
29906,
313,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
29908,
29933,
9345,
313,
29946,
29900,
8848,
5513,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
4300,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
4300,
29871,
29896,
29908,
1426,
29892,
13,
12,
29908,
6558,
313,
29896,
29900,
8848,
5513,
1426,
29892,
13,
12,
29908,
10840,
326,
313,
29896,
29889,
29945,
8848,
5513,
1426,
29892,
13,
12,
29908,
11536,
5974,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29945,
313,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
931,
363,
278,
4768,
446,
313,
29946,
29900,
8848,
29897,
746,
278,
2381,
326,
313,
29896,
29889,
29945,
8848,
29897,
338,
29871,
29896,
29929,
29901,
29945,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29933,
9345,
313,
29946,
29900,
8848,
5513,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29947,
29945,
29929,
29946,
29955,
29918,
29941,
29906,
5754,
376,
10840,
326,
313,
29896,
29889,
29945,
8848,
5513,
306,
5265,
6059,
14210,
29896,
29929,
29901,
29945,
29953,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
29933,
9345,
313,
29946,
29900,
8848,
5513,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29947,
29945,
29929,
29946,
29955,
29918,
29941,
29906,
5754,
376,
10840,
326,
313,
29896,
29889,
29945,
8848,
5513,
306,
5265,
6059,
14210,
29896,
29929,
29901,
29945,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the time for the bike (40km) when the swim (1.5km) is 19:56?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17085947_32 (
Athlete text,
Event text,
"Bike (40km)" text,
Rank numeric,
"Trans 2" text,
"Trans 1" text,
"Run (10km)" text,
"Swim (1.5km)" text,
"Total Time" text
);
CREATE TABLE table_1_11734041_15 (
"No.(s)" numeric,
Player text,
"School/Club Team/Country" text,
"Years for Rockets" text,
Position text,
"Height in Ft." text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the time for the bike (40km) when the swim (1.5km) is 19:56?`
```sql
| SELECT "Bike (40km)" FROM table_2_17085947_32 WHERE "Swim (1.5km)" ILIKE '%19:56%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
3001,
1612,
1338,
2113,
491,
263,
5233,
393,
750,
29871,
29955,
18449,
541,
901,
1135,
29871,
29896,
29906,
13283,
1612,
1338,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29947,
29929,
29906,
29918,
29946,
313,
13,
12,
29908,
23665,
428,
5920,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
8170,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
5593,
4712,
29908,
1426,
29892,
13,
12,
29908,
4557,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29963,
2911,
262,
29914,
29879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29906,
313,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29908,
29924,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
13853,
978,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29945,
29941,
29918,
29896,
29900,
313,
13,
12,
29907,
10880,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
23369,
1705,
9124,
29908,
1426,
29892,
13,
12,
29908,
29896,
11652,
29465,
1426,
29892,
13,
12,
29908,
29896,
3148,
29928,
29465,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29941,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29953,
29941,
29946,
29906,
29945,
29900,
29918,
29906,
313,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
26729,
369,
16985,
29892,
13,
12,
29933,
1617,
911,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29953,
29906,
29906,
29896,
29946,
29918,
29896,
313,
13,
12,
29908,
5323,
428,
5167,
29908,
1426,
29892,
13,
12,
29908,
1170,
310,
2184,
29908,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
2539,
313,
4591,
5513,
1426,
29892,
13,
12,
29908,
2539,
313,
1762,
5513,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
3001,
1612,
1338,
2113,
491,
263,
5233,
393,
750,
29871,
29955,
18449,
541,
901,
1135,
29871,
29896,
29906,
13283,
1612,
1338,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
11536,
29897,
3895,
1591,
29918,
29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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29953,
29941,
29946,
29906,
29945,
29900,
29918,
29906,
5754,
376,
29933,
1617,
911,
29908,
353,
525,
29955,
29915,
5300,
376,
26729,
369,
29908,
1405,
525,
29896,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1231892_4 (
"Production Code" text,
"Broadcast Order" text,
"U.S. Air Date" text,
"Number in series" numeric,
Title text,
"Villain/s" text
);
CREATE TABLE table_1_10577579_2 (
Founded numeric,
Joined text,
Location text,
Type text,
Institution text,
"Mens Nickname" text,
Enrollment numeric,
"Womens Nickname" text
);
CREATE TABLE table_1_1222653_10 (
Currency text,
Country text,
"Central bank" text,
"1 Euro =" text,
"1 USD =" text
);
CREATE TABLE table_1_10015132_3 (
"School/Club Team" text,
"No." numeric,
"Years in Toronto" text,
Player text,
Nationality text,
Position text
);
CREATE TABLE table_2_12634250_2 (
Gold numeric,
Rank text,
Total numeric,
Silver numeric,
Bronze numeric
);
CREATE TABLE table_1_12562214_1 (
"Traction Type" text,
"Name of System" text,
Notes text,
"Date (From)" text,
"Date (To)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?`
```sql
| SELECT MAX(Total) FROM table_2_12634250_2 WHERE "Bronze" = '7' AND "Silver" > '12' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1121,
310,
278,
1993,
297,
14320,
29895,
554,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29906,
29896,
29947,
29955,
29900,
29918,
29941,
29906,
313,
13,
12,
9652,
267,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29853,
1426,
29892,
13,
12,
8120,
1338,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29945,
29953,
29955,
29906,
29918,
29896,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
6508,
29914,
4165,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
11184,
847,
319,
1582,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29941,
313,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
29956,
2770,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
8091,
1426,
29892,
13,
12,
29908,
28154,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
2385,
2450,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29900,
29946,
29906,
29900,
29941,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1121,
310,
278,
1993,
297,
14320,
29895,
554,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29900,
29946,
29906,
29900,
29941,
29918,
29896,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
29890,
574,
29895,
554,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29900,
29946,
29906,
29900,
29941,
29918,
29896,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
29890,
574,
29895,
554,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the result of the match in Bangkok?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12321870_32 (
Matches text,
Country text,
Position text,
Period text,
Goals text,
"Player name" text
);
CREATE TABLE table_1_10595672_1 (
Opponent text,
"Location/Attendance" text,
"High rebounds" text,
"High assists" text,
"High points" text,
Record text,
"Home / Away" text
);
CREATE TABLE table_1_10577579_3 (
"Current Conference" text,
Institution text,
Type text,
Founded numeric,
"Women’s Nickname" text,
Joined text,
Left text,
"Men’s Nickname" text,
Enrollment numeric,
Classification text,
Location text
);
CREATE TABLE table_2_14904203_1 (
Score text,
Date text,
Competition text,
Result text,
Venue text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the result of the match in Bangkok?`
```sql
| SELECT RESULT FROM table_2_14904203_1 WHERE "Venue" ILIKE '%bangkok%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2635,
1258,
278,
1510,
411,
263,
3652,
7200,
1135,
29871,
29946,
29900,
29892,
5802,
775,
7968,
1135,
29871,
29906,
29896,
29941,
29892,
322,
263,
4259,
1353,
7200,
1135,
29871,
29896,
29896,
4799,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29947,
29896,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
1349,
1823,
8905,
29908,
1426,
29892,
13,
12,
29908,
6730,
8905,
29908,
1426,
29892,
13,
12,
20622,
29879,
1426,
29892,
13,
12,
29908,
29943,
473,
386,
8905,
29908,
1426,
29892,
13,
12,
29908,
11863,
8905,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29946,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
694,
1213,
16985,
29892,
13,
12,
29908,
19204,
694,
1213,
16985,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29896,
29946,
29906,
29918,
29896,
313,
13,
12,
29908,
4782,
315,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
319,
399,
3993,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
4782,
360,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
350,
399,
3993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29945,
29955,
29946,
29947,
29918,
29906,
313,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
29908,
17392,
272,
29898,
29879,
5513,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
2635,
1258,
278,
1510,
411,
263,
3652,
7200,
1135,
29871,
29946,
29900,
29892,
5802,
775,
7968,
1135,
29871,
29906,
29896,
29941,
29892,
322,
263,
4259,
1353,
7200,
1135,
29871,
29896,
29896,
4799,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
26036,
4799,
2635,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29946,
5754,
376,
19204,
694,
1213,
1405,
525,
29946,
29900,
29915,
5300,
376,
23665,
428,
5920,
29908,
529,
525,
29906,
29896,
29941,
29915,
5300,
376,
2008,
1658,
694,
1213,
1405,
525,
29896,
29896,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
26036,
4799,
2635,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29946,
5754,
376,
19204,
694,
1213,
1405,
525,
29946,
29900,
29915,
5300,
376,
23665,
428,
5920,
29908,
529,
525,
29906,
29896,
29941,
29915,
5300,
376,
2008,
1658,
694,
1213,
1405,
525,
29896,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12148147_2 (
"Third Year" text,
"First Year" text,
Subjects text,
"Fourth Year" text,
"Second Year" text
);
CREATE TABLE table_2_11630008_4 (
"Directed by" text,
"Written by" text,
"Season no." numeric,
"Series no." numeric,
"Production Code" numeric,
Title text,
"Original air date" text
);
CREATE TABLE table_1_1137142_1 (
"Group C Winner" text,
"Group A Winner" text,
Season text,
"Group D Winner" text,
"Group B Winner" text
);
CREATE TABLE table_1_11715748_2 (
"Writer(s)" text,
"Season #" numeric,
"Series #" numeric,
"Original airdate" text,
"Director(s)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air?`
```sql
| SELECT "Original air date" FROM table_2_11630008_4 WHERE "Series no." > '40' AND "Production Code" < '213' AND "Season no." > '11' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1741,
411,
263,
1121,
310,
29871,
29941,
29899,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29945,
29947,
29947,
29918,
29941,
313,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29945,
29896,
29929,
29941,
29953,
29918,
29896,
313,
13,
12,
29908,
8969,
29934,
29871,
29906,
29900,
29900,
29953,
29908,
1426,
29892,
13,
12,
29908,
23859,
12060,
29879,
29871,
29906,
29900,
29900,
29953,
29908,
16985,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
29954,
15860,
29871,
29906,
29900,
29900,
29953,
29908,
1426,
29892,
13,
12,
29908,
8809,
3246,
408,
1273,
310,
6977,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29953,
29906,
29945,
29947,
29896,
29918,
29896,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1741,
411,
263,
1121,
310,
29871,
29941,
29899,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
24620,
654,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29953,
29906,
29945,
29947,
29896,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29941,
29899,
29906,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
24620,
654,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29953,
29906,
29945,
29947,
29896,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29941,
29899,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the event with a result of 3-2?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1132588_3 (
Constructor text,
"Rd." numeric,
"Grand Prix" text,
"Fastest Lap" text,
Report text,
"Pole Position" text,
"Winning Driver" text
);
CREATE TABLE table_1_12251936_1 (
"TFR 2006" text,
"Live births 2006" numeric,
County text,
"GFR 2006" text,
"Whites as % of Pop." text
);
CREATE TABLE table_2_11462581_1 (
Result text,
Venue text,
Date text,
Score text,
Competition text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the event with a result of 3-2?`
```sql
| SELECT Competition FROM table_2_11462581_1 WHERE "Result" ILIKE '%3-2%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
29871,
29896,
29929,
29941,
29946,
281,
2146,
29930,
29871,
29896,
29929,
29994,
29900,
8206,
1171,
338,
278,
259,
29896,
29947,
29929,
29946,
281,
2146,
29871,
29896,
29900,
29994,
29900,
286,
14174,
340,
920,
1784,
29871,
29896,
29947,
29929,
29929,
281,
2146,
29930,
29871,
29896,
29896,
29994,
29900,
8206,
21555,
526,
727,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29947,
29953,
29945,
29941,
29918,
29929,
313,
13,
12,
29908,
20779,
313,
1095,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
29949,
7880,
470,
7531,
4086,
29898,
29879,
29897,
313,
284,
17416,
29914,
2154,
5513,
1426,
29892,
13,
12,
29908,
12415,
2410,
313,
1095,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
12415,
2410,
313,
429,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
20779,
313,
429,
4735,
1723,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29946,
29945,
29955,
29953,
29953,
29941,
29953,
29918,
29906,
313,
13,
12,
29908,
29896,
29947,
29929,
29955,
1939,
3748,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29906,
1939,
3748,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29953,
1939,
3748,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29947,
1939,
3748,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29941,
1939,
3748,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29946,
399,
14605,
29871,
29896,
29900,
29994,
29900,
25820,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29896,
1939,
3748,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29929,
399,
14605,
29930,
29871,
29896,
29896,
29994,
29900,
349,
913,
1171,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29945,
399,
14605,
29930,
29871,
29896,
29900,
29994,
29946,
349,
913,
1171,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29929,
29900,
1939,
3748,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
10401,
29871,
29896,
29929,
29941,
29946,
281,
2146,
29930,
29871,
29896,
29929,
29994,
29900,
8206,
1171,
338,
278,
259,
29896,
29947,
29929,
29946,
281,
2146,
29871,
29896,
29900,
29994,
29900,
286,
14174,
340,
920,
1784,
29871,
29896,
29947,
29929,
29929,
281,
2146,
29930,
29871,
29896,
29896,
29994,
29900,
8206,
21555,
526,
727,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
29896,
29947,
29929,
29929,
399,
14605,
29930,
29871,
29896,
29896,
29994,
29900,
349,
913,
1171,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29945,
29955,
29953,
29953,
29941,
29953,
29918,
29906,
5754,
376,
29896,
29947,
29929,
29946,
399,
14605,
29871,
29896,
29900,
29994,
29900,
25820,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29941,
29946,
29995,
7811,
29965,
29930,
29995,
29896,
29929,
29994,
29900,
29995,
29925,
913,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
29896,
29947,
29929,
29929,
399,
14605,
29930,
29871,
29896,
29896,
29994,
29900,
349,
913,
1171,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29945,
29955,
29953,
29953,
29941,
29953,
29918,
29906,
5754,
376,
29896,
29947,
29929,
29946,
399,
14605,
29871,
29896,
29900,
29994,
29900,
25820,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29941,
29946,
29995,
7811,
29965,
29930,
29995,
29896,
29929,
29994,
29900,
29995,
29925,
913,
1171,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When 1934 wsu* 19–0 pullman is the 1894 wsu 10–0 moscow how many 1899 wsu* 11–0 pullmans are there?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1008653_9 (
"Country ( endonym )" text,
"Official or native language(s) (alphabet/script)" text,
"Capital ( endonym )" text,
"Capital ( exonym )" text,
"Country ( exonym )" text
);
CREATE TABLE table_1_14576636_2 (
"1897 No game" text,
"1892 No game" text,
"1896 No game" text,
"1898 No game" text,
"1893 No game" text,
"1894 WSU 10–0 Moscow" text,
"1891 No game" text,
"1899 WSU* 11–0 Pullman" text,
"1895 WSU* 10–4 Pullman" text,
"1890 No game" text
);
CREATE TABLE table_1_11713303_2 (
"Manner of departure" text,
"Date of vacancy" text,
"Date of appointment" text,
"Replaced by" text,
"Outgoing manager" text,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`When 1934 wsu* 19–0 pullman is the 1894 wsu 10–0 moscow how many 1899 wsu* 11–0 pullmans are there?`
```sql
| SELECT COUNT("1899 WSU* 11–0 Pullman") FROM table_1_14576636_2 WHERE "1894 WSU 10–0 Moscow" ILIKE '%1934%WSU*%19–0%Pullman%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1258,
624,
476,
25949,
8158,
746,
896,
892,
278,
3271,
3815,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29953,
29947,
29945,
29906,
29918,
29896,
29941,
313,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29947,
29953,
29906,
29941,
29955,
29918,
29896,
313,
13,
12,
29908,
29896,
29906,
29945,
617,
19576,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29924,
3747,
19903,
19576,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29906,
29945,
29900,
617,
19576,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29900,
29947,
29955,
29918,
29906,
313,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29941,
29945,
29953,
29918,
29941,
313,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29949,
407,
265,
1237,
1426,
29892,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
7439,
1089,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
3744,
2763,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29900,
29953,
29945,
29918,
29906,
29955,
313,
13,
12,
16382,
342,
16985,
29892,
13,
12,
8514,
287,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29908,
3373,
29914,
6767,
29908,
1426,
29892,
13,
12,
29908,
8897,
8905,
29908,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
313,
13,
12,
29908,
5098,
29931,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3563,
497,
23868,
396,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
1258,
624,
476,
25949,
8158,
746,
896,
892,
278,
3271,
3815,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
11184,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29953,
29947,
29945,
29906,
29918,
29896,
29941,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
303,
29995,
29895,
25949,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
11184,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29953,
29947,
29945,
29906,
29918,
29896,
29941,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
303,
29995,
29895,
25949,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What did St Kilda score when they were the home team?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10806852_13 (
"Away team score" text,
"Home team score" text,
Crowd numeric,
"Away team" text,
Venue text,
Date text,
"Home team" text
);
CREATE TABLE table_1_12186237_1 (
"125cc winner" text,
"Grand Prix" text,
"MotoGP winner" text,
Circuit text,
"250cc winner" text,
Report text,
Round numeric
);
CREATE TABLE table_1_1139087_2 (
"Pole Position" text,
Date text,
"Winning Driver" text,
Location text,
"Fastest Lap" text,
Constructor text,
"Rd." numeric
);
CREATE TABLE table_1_1028356_3 (
Surface text,
Year numeric,
Opponents text,
Championship text,
Partner text,
Score text,
Outcome text
);
CREATE TABLE table_1_1161065_27 (
Highest numeric,
Hosted numeric,
Total numeric,
Average numeric,
Lowest numeric,
"Up/Down" text,
"Last Year" numeric,
Team text
);
CREATE TABLE table_1_12165999_1 (
"AFL Team" text,
Position text,
College text,
Player text,
"Overall Pick #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What did St Kilda score when they were the home team?`
```sql
| SELECT "Home team score" FROM table_2_10806852_13 WHERE "Home team" ILIKE '%st%kilda%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
3203,
1629,
363,
13260,
333,
1226,
4518,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29929,
29946,
29906,
29955,
29918,
29941,
313,
13,
12,
29909,
381,
1256,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29941,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
8091,
16985,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29946,
29941,
29896,
29906,
29918,
29945,
313,
13,
12,
29908,
13799,
297,
2383,
30088,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
16493,
29879,
322,
18481,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
472,
29871,
29906,
29900,
29896,
29900,
20121,
29908,
16985,
29892,
13,
12,
29908,
24636,
1024,
29908,
1426,
29892,
13,
12,
29908,
26036,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29953,
29929,
29929,
29906,
29953,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
2770,
29915,
29879,
22102,
29908,
1426,
29892,
13,
12,
29908,
28154,
29915,
29879,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29956,
2770,
29915,
29879,
27641,
29908,
1426,
29892,
13,
12,
29908,
28154,
29915,
29879,
22102,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29947,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29941,
29947,
29900,
29906,
29918,
29896,
313,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
6330,
2198,
414,
29908,
1426,
29892,
13,
12,
29956,
16697,
1426,
29892,
13,
12,
29908,
18457,
29914,
13509,
29908,
1426,
29892,
13,
12,
29908,
7717,
3611,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1170,
278,
3203,
1629,
363,
13260,
333,
1226,
4518,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29953,
29929,
29929,
29906,
29953,
29918,
29896,
5754,
376,
28154,
29915,
29879,
22102,
29908,
306,
5265,
6059,
14210,
29881,
16093,
29995,
287,
4518,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29953,
29929,
29929,
29906,
29953,
29918,
29896,
5754,
376,
28154,
29915,
29879,
22102,
29908,
306,
5265,
6059,
14210,
29881,
16093,
29995,
287,
4518,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the least year for david eddy`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10269427_3 (
Airdate text,
Title text,
"Directed by" text,
"Episode #" numeric,
"Written by" text,
"Production code" numeric
);
CREATE TABLE table_1_11658094_3 (
Location text,
Founded numeric,
Joined numeric,
Left numeric,
Nickname text,
Institution text,
Type text,
"Current Conference" text,
Enrollment numeric
);
CREATE TABLE table_1_1104312_5 (
"Area in km²" text,
"Number of settlements and villages" numeric,
"Population at 2010 Census" numeric,
"English name" text,
"Original name" text
);
CREATE TABLE table_2_12169926_1 (
"Mixed doubles" text,
"Women's singles" text,
"Men's doubles" text,
Year numeric,
"Women's doubles" text,
"Men's singles" text
);
CREATE TABLE table_1_11621873_1 (
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Winner text,
Date text,
Score text,
Tournament text
);
CREATE TABLE table_1_1053802_1 (
Network text,
"Main presenters" text,
Winners text,
"Region/country" text,
"Local title" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the least year for david eddy`
```sql
| SELECT MIN(YEAR) FROM table_2_12169926_1 WHERE "Men's singles" ILIKE '%david%eddy%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1353,
310,
425,
567,
5331,
411,
29871,
29896,
29953,
3291,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29896,
29929,
29929,
29941,
29896,
29918,
29896,
313,
13,
12,
29908,
12881,
29889,
10321,
29908,
16985,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
12376,
1426,
29892,
13,
12,
29908,
2481,
29914,
8015,
2859,
29908,
1426,
29892,
13,
12,
5756,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29908,
8179,
1939,
1213,
16985,
29892,
13,
12,
29908,
29931,
2547,
28934,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29941,
29955,
29947,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
29908,
10873,
793,
29314,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
29314,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1353,
310,
425,
567,
5331,
411,
29871,
29896,
29953,
3291,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
29931,
2547,
28934,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29896,
29929,
29929,
29941,
29896,
29918,
29896,
5754,
376,
20325,
29908,
306,
5265,
6059,
14210,
29896,
29953,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
703,
29931,
2547,
28934,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29896,
29929,
29929,
29941,
29896,
29918,
29896,
5754,
376,
20325,
29908,
306,
5265,
6059,
14210,
29896,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest number of laps led with 16 points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_17319931_1 (
"Fin. Pos" numeric,
Laps numeric,
Driver text,
"Time/Retired" text,
Grid numeric,
Team text,
Points text,
"Car No." numeric,
"Laps Led" numeric
);
CREATE TABLE table_1_11900378_1 (
Tournament text,
City text,
Surface text,
"Singles champions" text,
Country text,
"Doubles champions" text,
Date text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest number of laps led with 16 points?`
```sql
| SELECT MAX("Laps Led") FROM table_1_17319931_1 WHERE "Points" ILIKE '%16%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3171,
565,
316,
338,
278,
2602,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29896,
29929,
29947,
29955,
29918,
29896,
313,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12596,
2459,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29906,
313,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29940,
362,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29900,
29947,
29955,
29896,
29955,
29900,
29941,
29918,
29896,
313,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
22676,
16985,
29892,
13,
12,
7011,
1426,
29892,
13,
12,
29620,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29906,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3171,
565,
316,
338,
278,
2602,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
7011,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29947,
29955,
29896,
29955,
29900,
29941,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
2287,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
29898,
7011,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29947,
29955,
29896,
29955,
29900,
29941,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
2287,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the height if de is the position?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1241987_1 (
"Regular Season" text,
League text,
"Open Cup" text,
Year numeric,
Playoffs text,
Division numeric
);
CREATE TABLE table_1_12303563_2 (
"Runners-up" numeric,
Winners numeric,
"4th Place" numeric,
"#" numeric,
"3rd Place" numeric,
Nation text
);
CREATE TABLE table_1_20871703_1 (
"Player name" text,
Round numeric,
Position text,
College text,
Weight numeric,
Height text,
Choice numeric
);
CREATE TABLE table_1_10015132_2 (
Nationality text,
"School/Club Team" text,
"Years in Toronto" text,
Player text,
"No." text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the height if de is the position?`
```sql
| SELECT COUNT(Height) FROM table_1_20871703_1 WHERE "Position" ILIKE '%DE%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3271,
3815,
8158,
393,
5318,
3448,
3815,
1559,
29880,
880,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29929,
29941,
29953,
29947,
29918,
29896,
29947,
313,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29953,
29953,
29953,
29945,
29918,
29896,
313,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29953,
29908,
1426,
29892,
13,
12,
29908,
13799,
2383,
30088,
29908,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
13799,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
29928,
575,
537,
24810,
639,
2383,
30088,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3271,
3815,
8158,
393,
5318,
3448,
3815,
1559,
29880,
880,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
11184,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29929,
29941,
29953,
29947,
29918,
29896,
29947,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
4287,
29880,
880,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
11184,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29929,
29941,
29953,
29947,
29918,
29896,
29947,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
4287,
29880,
880,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the home team score that played away team carlton?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10809368_18 (
Crowd numeric,
Date text,
"Away team" text,
"Home team" text,
Venue text,
"Home team score" text,
"Away team score" text
);
CREATE TABLE table_1_1246665_1 (
County text,
"unnamed_6" text,
"Area km²" numeric,
Municipality text,
Area text,
Population numeric,
"Density Population per km²" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the home team score that played away team carlton?`
```sql
| SELECT "Home team score" FROM table_2_10809368_18 WHERE "Away team" ILIKE '%carlton%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
29871,
29896,
303,
24791,
29892,
746,
29871,
29946,
24791,
338,
376,
29941,
29871,
29906,
29955,
29941,
29871,
29946,
29946,
29900,
313,
29896,
29955,
4779,
29871,
29906,
29900,
29900,
29929,
5513,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29945,
313,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
10507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29955,
29896,
29896,
29945,
29900,
29918,
29896,
29941,
313,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29945,
4259,
29908,
1426,
29892,
13,
12,
29908,
29953,
4259,
29908,
1426,
29892,
13,
12,
29908,
29896,
4259,
29908,
1426,
29892,
13,
12,
29908,
29941,
4259,
29908,
1426,
29892,
13,
12,
29908,
29906,
4259,
29908,
1426,
29892,
13,
12,
29908,
29946,
4259,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29929,
29900,
29947,
29955,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29934,
804,
292,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
262,
14746,
5513,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
29871,
29896,
303,
24791,
29892,
746,
29871,
29946,
24791,
338,
376,
29941,
29871,
29906,
29955,
29941,
29871,
29946,
29946,
29900,
313,
29896,
29955,
4779,
29871,
29906,
29900,
29900,
29929,
5513,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29896,
4259,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29955,
29896,
29896,
29945,
29900,
29918,
29896,
29941,
5754,
376,
29946,
4259,
29908,
306,
5265,
6059,
14210,
29941,
29995,
29906,
29955,
29941,
29995,
29946,
29946,
29900,
29995,
29898,
29896,
29955,
29995,
29885,
1279,
29995,
29906,
29900,
29900,
29929,
29897,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29896,
4259,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29955,
29896,
29896,
29945,
29900,
29918,
29896,
29941,
5754,
376,
29946,
4259,
29908,
306,
5265,
6059,
14210,
29941,
29995,
29906,
29955,
29941,
29995,
29946,
29946,
29900,
29995,
29898,
29896,
29955,
29995,
29885,
1279,
29995,
29906,
29900,
29900,
29929,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is 1st Season, when 4 Season is "3 273 440 (17 March 2009)"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10470082_5 (
"US air date" text,
"No." numeric,
Villains text,
Storyteller text,
"#" numeric,
Director text,
Title text,
Writer text
);
CREATE TABLE table_2_17671150_13 (
Episode text,
"5 season" text,
"6 season" text,
"1 season" text,
"3 season" text,
"2 season" text,
"4 season" text
);
CREATE TABLE table_1_1009087_1 (
Season text,
Ranking text,
"Viewers (in millions)" text,
Network text,
"Season finale" text,
"Season premiere" text,
"TV season" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is 1st Season, when 4 Season is "3 273 440 (17 March 2009)"?`
```sql
| SELECT "1 season" FROM table_2_17671150_13 WHERE "4 season" ILIKE '%3%273%440%(17%march%2009)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
4847,
515,
1570,
12568,
13582,
278,
399,
29934,
2602,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29896,
29941,
29945,
29953,
29946,
29918,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29925,
860,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
29900,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29946,
29929,
29953,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
4847,
515,
1570,
12568,
13582,
278,
399,
29934,
2602,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29896,
29941,
29945,
29953,
29946,
29918,
29906,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
15866,
29001,
5300,
376,
4504,
1507,
29914,
6821,
431,
8583,
29908,
306,
5265,
6059,
14210,
1482,
29995,
29885,
735,
1417,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29896,
29941,
29945,
29953,
29946,
29918,
29906,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
15866,
29001,
5300,
376,
4504,
1507,
29914,
6821,
431,
8583,
29908,
306,
5265,
6059,
14210,
1482,
29995,
29885,
735,
1417,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What player from New Mexico plays the WR position?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15013564_2 (
Position text,
"School/Club Team" text,
Round numeric,
Player text,
Pick numeric
);
CREATE TABLE table_1_1013129_10 (
"College/junior/club team" text,
Player text,
"NHL team" text,
Nationality text
);
CREATE TABLE table_1_11622496_1 (
Score text,
"Purse( $ )" numeric,
Date text,
"1st Prize( $ )" text,
Winner text,
Location text,
Tournament text
);
```
### Answer
Here is the SQL query that answers the question:
`What player from New Mexico plays the WR position?`
```sql
| SELECT Player FROM table_2_15013564_2 WHERE "Position" ILIKE '%wr%' AND "School/Club Team" ILIKE '%new%mexico%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
27180,
8408,
292,
12554,
471,
278,
1090,
29899,
29896,
29929,
29892,
1058,
471,
278,
1090,
29899,
29896,
29945,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29896,
29953,
29900,
29896,
29918,
29906,
313,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29896,
29900,
29871,
29953,
323,
787,
29897,
313,
29906,
29900,
29900,
29953,
5513,
16985,
29892,
13,
12,
29908,
27933,
482,
310,
5534,
3001,
29908,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
25477,
639,
2383,
29871,
29906,
310,
967,
2982,
313,
7453,
5513,
16985,
29892,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29911,
787,
639,
2022,
29897,
313,
29906,
29900,
29900,
29955,
5513,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29941,
29953,
29947,
29929,
29953,
29941,
29918,
29896,
313,
13,
12,
29908,
29177,
29899,
29896,
29896,
29908,
1426,
29892,
13,
12,
29908,
29177,
29899,
29896,
29941,
29908,
1426,
29892,
13,
12,
29908,
29177,
29899,
29896,
29945,
29908,
1426,
29892,
13,
12,
29908,
29177,
29899,
29896,
29955,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29177,
29899,
29896,
29929,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
10401,
27180,
8408,
292,
12554,
471,
278,
1090,
29899,
29896,
29929,
29892,
1058,
471,
278,
1090,
29899,
29896,
29945,
29973,
29952,
13,
28956,
2850,
13,
5097,
501,
2797,
1001,
29899,
29896,
29945,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29941,
29953,
29947,
29929,
29953,
29941,
29918,
29896,
5754,
376,
29177,
29899,
29896,
29929,
29908,
306,
5265,
6059,
14210,
27501,
713,
29995,
10002,
292,
12554,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
501,
2797,
1001,
29899,
29896,
29945,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29941,
29953,
29947,
29929,
29953,
29941,
29918,
29896,
5754,
376,
29177,
29899,
29896,
29929,
29908,
306,
5265,
6059,
14210,
27501,
713,
29995,
10002,
292,
12554,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When Julian Illingworth was the under-19, who was the under-15?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11251601_2 (
"Carbon dioxide emissions per year (10 6 Tons) (2006)" numeric,
"Percentage of global total" text,
"Avg. emission per km 2 of its land (tons)" numeric,
"Carbon dioxide emissions per year (Tons per person) (2007)" text,
Country text
);
CREATE TABLE table_1_26368963_1 (
"Under-11" text,
"Under-13" text,
"Under-15" text,
"Under-17" text,
Year numeric,
"Under-19" text
);
```
### Answer
Here is the SQL query that answers the question:
`When Julian Illingworth was the under-19, who was the under-15?`
```sql
| SELECT UNDER-15 FROM table_1_26368963_1 WHERE "Under-19" ILIKE '%Julian%Illingworth%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
13977,
923,
5847,
892,
727,
746,
278,
18766,
4266,
1017,
471,
10369,
2723,
275,
457,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29955,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29941,
29929,
29947,
29906,
29941,
29929,
29929,
29918,
29896,
313,
13,
12,
1451,
5442,
914,
1426,
29892,
13,
12,
29908,
17693,
22607,
1127,
993,
29908,
1426,
29892,
13,
12,
29908,
3563,
497,
382,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
29902,
1617,
6561,
29888,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
29908,
1451,
5442,
914,
12630,
1017,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29955,
29900,
29906,
29900,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
29873,
20549,
29908,
16985,
29892,
13,
12,
29931,
4357,
12734,
16985,
29892,
13,
12,
29934,
1698,
3391,
12533,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
11536,
11069,
29908,
16985,
29892,
13,
12,
29943,
2784,
4727,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29941,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
29928,
283,
7586,
29314,
29908,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
29908,
10873,
793,
29314,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29900,
29947,
29953,
29955,
29953,
29918,
29955,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
13977,
923,
5847,
892,
727,
746,
278,
18766,
4266,
1017,
471,
10369,
2723,
275,
457,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
29902,
1617,
6561,
29888,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29929,
29947,
29906,
29941,
29929,
29929,
29918,
29896,
5754,
376,
1451,
5442,
914,
12630,
1017,
29908,
306,
5265,
6059,
14210,
29967,
21419,
968,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
703,
29902,
1617,
6561,
29888,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29929,
29947,
29906,
29941,
29929,
29929,
29918,
29896,
5754,
376,
1451,
5442,
914,
12630,
1017,
29908,
306,
5265,
6059,
14210,
29967,
21419,
968,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many iron chefs were there when the challenge specialty was Japanese cuisine?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964154_7 (
Score text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
Game numeric,
Team text,
Record text,
Date text,
"High points" text
);
CREATE TABLE table_1_23982399_1 (
Challenger text,
"Theme Ingredient" text,
"Overall Episode #" numeric,
"Iron Chef" text,
Winner text,
"Original airdate" text,
"Challenger Specialty" text
);
CREATE TABLE table_1_12570207_1 (
"Mt Morgan" numeric,
Livingstone numeric,
Rockhampton numeric,
Year numeric,
"Total Region" numeric,
Fitzroy numeric
);
CREATE TABLE table_1_11900378_1 (
"Doubles champions" text,
Surface text,
Country text,
Tournament text,
City text,
"Singles champions" text
);
CREATE TABLE table_1_10908676_7 (
"Original air date" text,
"Directed by" text,
Title text,
"No. in series" numeric,
"No. in season" numeric,
"Written by" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many iron chefs were there when the challenge specialty was Japanese cuisine?`
```sql
| SELECT COUNT("Iron Chef") FROM table_1_23982399_1 WHERE "Challenger Specialty" ILIKE '%Japanese%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
260,
3409,
482,
310,
278,
7751,
4139,
292,
262,
5757,
3857,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29953,
29955,
29945,
29918,
29896,
313,
13,
12,
1451,
8233,
1426,
29892,
13,
12,
4300,
18411,
1426,
29892,
13,
12,
29925,
4901,
262,
1426,
29892,
13,
12,
20622,
1426,
29892,
13,
12,
1451,
3314,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29941,
313,
13,
12,
29908,
2539,
7802,
2669,
29908,
1426,
29892,
13,
12,
29911,
3409,
482,
16985,
29892,
13,
12,
29908,
2539,
411,
19811,
1233,
29908,
1426,
29892,
13,
12,
29908,
1542,
310,
1383,
666,
29908,
1426,
29892,
13,
12,
29908,
2713,
666,
29915,
29879,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29906,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
338,
278,
260,
3409,
482,
310,
278,
7751,
4139,
292,
262,
5757,
3857,
29973,
29952,
13,
28956,
2850,
13,
5097,
323,
3409,
482,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29941,
5754,
376,
2713,
666,
29915,
29879,
1024,
29908,
306,
5265,
6059,
14210,
8077,
292,
262,
29995,
29926,
352,
3857,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
323,
3409,
482,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29941,
5754,
376,
2713,
666,
29915,
29879,
1024,
29908,
306,
5265,
6059,
14210,
8077,
292,
262,
29995,
29926,
352,
3857,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the tonnage of the ship koningin juliana?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1216675_1 (
Chinese text,
Translation text,
Pinyin text,
Subject text,
Chapter numeric
);
CREATE TABLE table_2_11662133_3 (
"Date entered service" text,
Tonnage numeric,
"Date withdrawn" text,
"Type of Ship" text,
"Ship's name" text
);
CREATE TABLE table_1_12159115_2 (
"Directed by" text,
"U.S. viewers (millions)" text,
Title text,
"Written by" text,
"Production code" text,
"Original air date" text,
"Series #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`what is the tonnage of the ship koningin juliana?`
```sql
| SELECT Tonnage FROM table_2_11662133_3 WHERE "Ship's name" ILIKE '%koningin%juliana%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29896,
29929,
29955,
29953,
995,
310,
278,
9870,
4673,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29946,
29941,
29896,
29929,
29918,
29896,
313,
13,
12,
29908,
29928,
749,
29914,
21453,
29908,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
17241,
6115,
1426,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
18420,
1171,
1426,
29892,
13,
12,
29911,
5271,
5079,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29928,
28778,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29906,
29906,
29955,
29896,
29941,
29918,
29906,
313,
13,
12,
29908,
29896,
29929,
29955,
29906,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29896,
29929,
29955,
29941,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29955,
29955,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29955,
29946,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29955,
29953,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29955,
29947,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29955,
29945,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29896,
29929,
29955,
29953,
995,
310,
278,
9870,
4673,
29973,
29952,
13,
28956,
2850,
13,
5097,
29871,
29896,
29929,
29955,
29953,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29906,
29906,
29955,
29896,
29941,
29918,
29906,
5754,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
29874,
12135,
713,
29995,
3150,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
29871,
29896,
29929,
29955,
29953,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29906,
29906,
29955,
29896,
29941,
29918,
29906,
5754,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
29874,
12135,
713,
29995,
3150,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the 1976 value of the Australian Open?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1014319_1 (
"Dance/song" text,
Week numeric,
Horwood text,
Total text,
Goodman text,
Tonioli text,
Result text,
Dixon text
);
CREATE TABLE table_2_11422713_2 (
"1972" text,
Tournament text,
"1973" text,
"1977" text,
"1974" text,
"1976" text,
"1978" text,
"1975" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the 1976 value of the Australian Open?`
```sql
| SELECT 1976 FROM table_2_11422713_2 WHERE "Tournament" ILIKE '%australian%open%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
6811,
497,
1353,
363,
278,
4847,
411,
263,
2602,
310,
315,
322,
263,
4513,
7621,
1135,
29871,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29946,
29941,
29947,
29945,
29918,
29896,
313,
13,
12,
29908,
2792,
6766,
29908,
1426,
29892,
13,
12,
29908,
29950,
1709,
1840,
29908,
1426,
29892,
13,
12,
29908,
5044,
4712,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
29908,
17946,
4712,
29908,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
22406,
313,
6360,
29879,
29892,
3841,
5513,
1426,
29892,
13,
12,
1123,
6338,
1230,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29906,
29900,
313,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29955,
313,
13,
12,
1170,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
3563,
497,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29953,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29896,
29896,
29941,
29945,
29918,
29941,
313,
13,
12,
29908,
8120,
292,
304,
29908,
1426,
29892,
13,
12,
8498,
442,
545,
1426,
29892,
13,
12,
1433,
15081,
1426,
29892,
13,
12,
26486,
1426,
29892,
13,
12,
29908,
5594,
292,
472,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29953,
313,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
6811,
497,
1353,
363,
278,
4847,
411,
263,
2602,
310,
315,
322,
263,
4513,
7621,
1135,
29871,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
3563,
497,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29955,
5754,
376,
29934,
618,
29908,
1405,
525,
29955,
29915,
5300,
376,
8003,
29908,
306,
5265,
6059,
14210,
29883,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
22753,
29898,
3563,
497,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29955,
5754,
376,
29934,
618,
29908,
1405,
525,
29955,
29915,
5300,
376,
8003,
29908,
306,
5265,
6059,
14210,
29883,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the Overall number for the player with a position of C and a round greater than 7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10284385_1 (
"State served" text,
"House term" text,
"End Date" text,
"Date of birth" text,
"Begin Date" text,
Party text,
"Age (years, days)" text,
Representative text
);
CREATE TABLE table_1_11734041_20 (
"No.(s)" text,
Player text,
"Years for Rockets" text,
"School/Club Team/Country" text,
"Height in Ft." text
);
CREATE TABLE table_2_17100961_7 (
Name text,
Pick numeric,
Round numeric,
Position text,
College text,
Overall numeric
);
CREATE TABLE table_1_11734041_6 (
Position text,
"No.(s)" text,
"School/Club Team/Country" text
);
CREATE TABLE table_1_12221135_3 (
"Going to" text,
Departure text,
Arrival text,
Operator text,
"Calling at" text
);
CREATE TABLE table_1_10470082_6 (
"US air date" text,
Writer text,
"#" numeric,
Director text,
"No." numeric,
Storyteller text,
Villains text,
Title text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the Overall number for the player with a position of C and a round greater than 7?`
```sql
| SELECT SUM(Overall) FROM table_2_17100961_7 WHERE "Round" > '7' AND "Position" ILIKE '%c%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
15456,
29892,
746,
1763,
610,
338,
376,
29896,
613,
322,
746,
14574,
338,
376,
2008,
345,
13402,
4156,
359,
8652,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29906,
29906,
29896,
29941,
29900,
29918,
29941,
313,
13,
12,
29908,
12883,
29898,
29879,
29897,
2113,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29900,
29941,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
18571,
262,
663,
313,
29885,
5513,
16985,
29892,
13,
12,
29908,
29923,
2608,
362,
313,
29885,
5513,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
15666,
557,
1426,
29892,
13,
12,
29908,
29902,
2929,
362,
313,
8848,
5513,
16985,
29892,
13,
12,
3981,
29891,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29946,
29900,
29941,
29941,
29918,
29896,
313,
13,
12,
19409,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29928,
4154,
4134,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29928,
4154,
23868,
396,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29945,
29953,
29947,
29918,
29941,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
15456,
29892,
746,
1763,
610,
338,
376,
29896,
613,
322,
746,
14574,
338,
376,
2008,
345,
13402,
4156,
359,
8652,
29952,
13,
28956,
2850,
13,
5097,
15456,
3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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15456,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29906,
29906,
29896,
29941,
29900,
29918,
29941,
5754,
376,
1762,
610,
29908,
353,
525,
29896,
29915,
5300,
376,
9075,
29908,
306,
5265,
6059,
14210,
344,
345,
29995,
2135,
4156,
359,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Country, when To par is "1", and when Player is "Seve Ballesteros"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18122130_3 (
"Year(s) won" text,
Player text,
Total numeric,
Country text,
"To par" numeric
);
CREATE TABLE table_1_12280396_1 (
"Prominence (m)" numeric,
"Elevation (m)" numeric,
Rank numeric,
Municipality text,
Peak text,
"Isolation (km)" numeric,
County text
);
CREATE TABLE table_1_1004033_1 (
Team text,
Nationality text,
Season numeric,
"Draft Class" text,
Position text,
"Draft Pick #" text,
College text
);
CREATE TABLE table_1_1132568_3 (
"Fastest Lap" text,
"Pole Position" text,
"Rd." numeric,
Constructor text,
"Grand Prix" text,
"Winning Driver" text,
Report text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Country, when To par is "1", and when Player is "Seve Ballesteros"?`
```sql
| SELECT Country FROM table_2_18122130_3 WHERE "To par" = '1' AND "Player" ILIKE '%seve%ballesteros%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
3748,
750,
29871,
29947,
18449,
322,
29871,
29946,
7684,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29947,
29906,
29945,
29900,
29896,
29918,
29896,
313,
13,
12,
26729,
369,
1426,
29892,
13,
12,
29954,
1280,
1426,
29892,
13,
12,
29954,
1025,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
29933,
1617,
911,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29955,
29896,
29941,
29946,
29918,
29896,
313,
13,
12,
29908,
18457,
29871,
29896,
29908,
1426,
29892,
13,
12,
29908,
18457,
29871,
29946,
29908,
1426,
29892,
13,
12,
29908,
29937,
310,
14055,
29908,
16985,
29892,
13,
12,
29908,
29928,
10699,
4408,
29908,
1426,
29892,
13,
12,
29908,
18457,
29871,
29906,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29900,
29946,
29955,
29918,
29896,
29900,
313,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
855,
276,
557,
1426,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
885,
9386,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
11184,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29946,
29900,
29929,
29900,
29955,
29918,
29896,
313,
13,
12,
29908,
8259,
6866,
1145,
29908,
16985,
29892,
13,
12,
29908,
7713,
625,
4889,
29908,
1426,
29892,
13,
12,
29908,
7713,
625,
13049,
29908,
16985,
29892,
13,
12,
29908,
25733,
639,
2117,
2028,
29908,
1426,
29892,
13,
12,
29908,
20647,
603,
6554,
639,
29871,
29896,
29892,
29900,
29900,
29900,
2305,
29908,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
11536,
21544,
313,
29906,
29900,
29900,
29945,
5513,
1426,
29892,
13,
12,
29908,
1666,
16719,
639,
12139,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
3748,
750,
29871,
29947,
18449,
322,
29871,
29946,
7684,
29973,
29952,
13,
28956,
2850,
13,
5097,
12482,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29947,
29906,
29945,
29900,
29896,
29918,
29896,
5754,
376,
29933,
1617,
911,
29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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
12482,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29947,
29906,
29945,
29900,
29896,
29918,
29896,
5754,
376,
29933,
1617,
911,
29908,
306,
5265,
6059,
14210,
29947,
29001,
5300,
376,
29954,
1025,
29908,
306,
5265,
6059,
14210,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which game had 8 bronze and 4 gold?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10882501_1 (
Silver text,
Games text,
Gold text,
Rank text,
Total text,
Bronze text
);
CREATE TABLE table_1_1067134_1 (
"Region 1" text,
"Region 4" text,
"# of Ep" numeric,
"DVD Name" text,
"Region 2" text
);
CREATE TABLE table_1_11964047_10 (
Attendance text,
Streak text,
Visitor text,
"Leading scorer" text,
Record text,
"#" numeric,
Date text,
Home text,
Score text
);
CREATE TABLE table_1_12340907_1 (
"Case burden" numeric,
"Police force" text,
"Police officers" numeric,
"Cost per capita" text,
"Crime rate per 1,000 people" numeric,
Municipality text,
Population numeric,
"Total costs (2005)" text,
"Residents per officer" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which game had 8 bronze and 4 gold?`
```sql
| SELECT Games FROM table_2_10882501_1 WHERE "Bronze" ILIKE '%8%' AND "Gold" ILIKE '%4%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4967,
746,
278,
9939,
2791,
338,
29871,
29955,
29929,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29896,
29896,
29900,
29906,
29953,
29918,
29906,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29929,
29947,
29946,
29906,
29906,
29900,
29896,
29918,
29896,
313,
13,
12,
29908,
29931,
340,
342,
2791,
29908,
16985,
29892,
13,
12,
29908,
29995,
6978,
29908,
16985,
29892,
13,
12,
6816,
273,
16985,
29892,
13,
12,
20622,
1426,
29892,
13,
12,
29908,
3782,
29889,
12178,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
6978,
287,
29908,
16985,
29892,
13,
12,
29908,
16382,
342,
2791,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29945,
29953,
29906,
29955,
29947,
29918,
29941,
313,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29946,
29896,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
2539,
937,
17141,
408,
263,
1014,
9265,
29908,
16985,
29892,
13,
12,
29908,
29954,
834,
1803,
287,
408,
263,
7946,
4408,
29908,
1426,
29892,
13,
12,
29908,
29928,
575,
537,
20374,
8848,
30088,
5513,
16985,
29892,
13,
12,
29908,
6816,
273,
22329,
2159,
313,
262,
29871,
29906,
29900,
29900,
29953,
5513,
1426,
29892,
13,
12,
4035,
9265,
1426,
29892,
13,
12,
29908,
12310,
2785,
313,
262,
29871,
29906,
29900,
29900,
29947,
5513,
16985,
29892,
13,
12,
29908,
19302,
713,
5046,
313,
262,
29871,
29906,
29900,
29900,
29953,
5513,
1426,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29953,
29946,
29955,
29946,
29953,
29918,
29896,
313,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
29950,
1709,
4408,
29908,
1426,
29892,
13,
12,
1523,
3283,
1426,
29892,
13,
12,
29908,
22175,
1156,
29908,
1426,
29892,
13,
12,
1625,
2470,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
4967,
746,
278,
9939,
2791,
338,
29871,
29955,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
3323,
622,
3895,
1591,
29918,
29896,
29918,
29906,
29929,
29947,
29946,
29906,
29906,
29900,
29896,
29918,
29896,
5754,
376,
16382,
342,
2791,
29908,
353,
525,
29955,
29929,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
3323,
622,
3895,
1591,
29918,
29896,
29918,
29906,
29929,
29947,
29946,
29906,
29906,
29900,
29896,
29918,
29896,
5754,
376,
16382,
342,
2791,
29908,
353,
525,
29955,
29929,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the subject when the highest mark is 79?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11411026_2 (
"Original air date" text,
"Directed by" text,
"U.S. viewers (millions)" text,
"No. in series" numeric,
"No. in season" numeric,
Title text,
"Written by" text
);
CREATE TABLE table_1_29842201_1 (
"Lowest mark" numeric,
"% Pass" numeric,
Mean numeric,
Subject text,
"No. Sat" numeric,
"No. Passed" numeric,
"Highest mark" numeric
);
CREATE TABLE table_1_11056278_3 (
"Winning team" text,
"Fastest lap" text,
Report text,
Rnd numeric,
"Race Name" text,
"Pole position" text,
"Winning driver" text
);
CREATE TABLE table_1_1174162_1 (
"Date first settled as a suburb" numeric,
"Gazetted as a Division Name" text,
"Density (/km²)" numeric,
"Mean household size (in 2006)" text,
Suburb text,
"Population (in 2008)" numeric,
"Median age (in 2006)" text,
"Area (km²)" text
);
CREATE TABLE table_1_11464746_1 (
Founded numeric,
"House Name" text,
Composition text,
"Named after" text,
Colours text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the subject when the highest mark is 79?`
```sql
| SELECT Subject FROM table_1_29842201_1 WHERE "Highest mark" = '79' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
29871,
29896,
29901,
29941,
29900,
26354,
29892,
746,
29871,
29955,
29901,
29900,
29900,
626,
338,
376,
29911,
4901,
1763,
265,
21255,
1973,
8652,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29955,
29896,
29906,
29945,
29945,
29918,
29941,
313,
13,
12,
29908,
29896,
29906,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29947,
29901,
29900,
29900,
626,
29908,
1426,
29892,
13,
12,
29908,
29896,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29941,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29945,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29955,
29901,
29941,
29900,
626,
29908,
1426,
29892,
13,
12,
29908,
29955,
29901,
29900,
29900,
626,
29908,
1426,
29892,
13,
12,
29908,
29941,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29929,
29901,
29900,
29900,
626,
29908,
1426,
29892,
13,
12,
29908,
29946,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29896,
29896,
29901,
29900,
29900,
626,
29908,
1426,
29892,
13,
12,
29908,
29906,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29946,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
1217,
265,
1426,
29892,
13,
12,
29908,
29896,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29953,
29901,
29941,
29900,
26354,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29947,
29929,
29906,
29918,
29946,
313,
13,
12,
29908,
29963,
2911,
262,
29914,
29879,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
5593,
4712,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
8170,
29908,
1426,
29892,
13,
12,
29908,
4557,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29900,
29918,
29946,
313,
13,
12,
29908,
4557,
310,
20084,
297,
2246,
8542,
29908,
16985,
29892,
13,
12,
29908,
6730,
4259,
297,
2246,
8542,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
20084,
297,
278,
14163,
5165,
29908,
16985,
29892,
13,
12,
29908,
7031,
8542,
17735,
29908,
16985,
29892,
13,
12,
29908,
8003,
297,
29871,
29906,
29900,
29896,
29906,
29994,
29896,
29941,
29908,
1426,
29892,
13,
12,
29908,
6730,
4259,
310,
1857,
24779,
297,
2246,
8542,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
8897,
2246,
8542,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29906,
29900,
29900,
29947,
29953,
29918,
29896,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29896,
29946,
29947,
29918,
29896,
313,
13,
12,
2008,
1218,
16985,
29892,
13,
12,
6513,
1426,
29892,
13,
12,
29908,
12883,
4673,
287,
29908,
16985,
29892,
13,
12,
29908,
12883,
7255,
5958,
518,
29909,
4514,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
17936,
4408,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
29871,
29896,
29901,
29941,
29900,
26354,
29892,
746,
29871,
29955,
29901,
29900,
29900,
626,
338,
376,
29911,
4901,
1763,
265,
21255,
1973,
8652,
29952,
13,
28956,
2850,
13,
5097,
376,
29896,
29901,
29941,
29900,
26354,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29955,
29896,
29906,
29945,
29945,
29918,
29941,
5754,
376,
29955,
29901,
29900,
29900,
626,
29908,
306,
5265,
6059,
14210,
25649,
29995,
517,
265,
29995,
328,
794,
1973,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29896,
29901,
29941,
29900,
26354,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29955,
29896,
29906,
29945,
29945,
29918,
29941,
5754,
376,
29955,
29901,
29900,
29900,
626,
29908,
306,
5265,
6059,
14210,
25649,
29995,
517,
265,
29995,
328,
794,
1973,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is 1:30 pm, when 7:00 am is "Tiny Toon Adventures"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17871255_3 (
"12:30 pm" text,
"8:00 am" text,
"1:00 pm" text,
"3:00 pm" text,
"5:00 pm" text,
"7:30 am" text,
"7:00 am" text,
"3:30 pm" text,
"9:00 am" text,
"4:00 pm" text,
"11:00 am" text,
"2:00 pm" text,
"4:30 pm" text,
noon text,
"1:30 pm" text,
"6:30 pm" text
);
CREATE TABLE table_1_1231892_4 (
"Villain/s" text,
Title text,
"U.S. Air Date" text,
"Production Code" text,
"Broadcast Order" text,
"Number in series" numeric
);
CREATE TABLE table_1_11250_4 (
"Number of seasons in top division" numeric,
"First season in top division" text,
"Number of seasons in the Premier League" numeric,
"Top division titles" numeric,
"Position in 2012–13" text,
"First season of current spell in top division" text,
Club text,
"Last top division title" text
);
CREATE TABLE table_1_11820086_1 (
"Written by" text,
"Directed by" text,
"Original air date" text,
"U.S. viewers (millions)" text,
"No. in season" numeric,
"Production code" text,
"No. in series" numeric
);
CREATE TABLE table_1_1245148_1 (
Seating numeric,
Length text,
"Year Opened" numeric,
"Year Acquired [A ]" numeric,
Location text,
"Track Name" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is 1:30 pm, when 7:00 am is "Tiny Toon Adventures"?`
```sql
| SELECT "1:30 pm" FROM table_2_17871255_3 WHERE "7:00 am" ILIKE '%tiny%toon%adventures%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
12463,
1629,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29953,
29955,
29955,
29955,
29941,
29947,
29918,
29896,
313,
13,
12,
29908,
29954,
487,
379,
6453,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
797,
1983,
310,
9245,
322,
678,
4564,
708,
29908,
16985,
29892,
13,
12,
29908,
19984,
4939,
7946,
29908,
16985,
29892,
13,
12,
29908,
3047,
262,
278,
399,
4293,
29908,
16985,
29892,
13,
12,
29908,
16128,
1195,
2475,
4412,
322,
10895,
1017,
29908,
16985,
29892,
13,
12,
29908,
3047,
449,
278,
399,
4293,
29908,
16985,
29892,
13,
12,
29908,
6489,
386,
272,
484,
379,
6453,
29908,
16985,
29892,
13,
12,
29908,
3624,
280,
12554,
379,
6453,
29908,
16985,
29892,
13,
12,
29908,
3853,
14132,
265,
379,
6453,
29908,
16985,
29892,
13,
12,
29908,
5592,
295,
386,
272,
484,
379,
6453,
29908,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
29911,
1680,
7946,
29908,
16985,
29892,
13,
12,
29908,
29968,
575,
4885,
7946,
29908,
16985,
29892,
13,
12,
29908,
29943,
1144,
11059,
7946,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29947,
29947,
29900,
29896,
29918,
29896,
313,
13,
12,
6816,
273,
292,
1426,
29892,
13,
12,
29908,
22676,
472,
12060,
29908,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
29954,
1581,
1426,
29892,
13,
12,
29908,
13658,
4408,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
12463,
1629,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29953,
29955,
29955,
29955,
29941,
29947,
29918,
29896,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29953,
29955,
29955,
29955,
29941,
29947,
29918,
29896,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the lowest overall year?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_16677738_1 (
"Gore Hundred" numeric,
Year numeric,
"Inns of Court and Chancery" numeric,
"Holborn Division" numeric,
"Within the Walls" numeric,
"Westminster City and Liberty" numeric,
"Without the Walls" numeric,
"Elthorne Hundred" numeric,
"Isleworth Hundred" numeric,
"Edmonton Hundred" numeric,
"Spelthorne Hundred" numeric,
Total numeric,
"Tower Division" numeric,
"Kensington Division" numeric,
"Finsbury Division" numeric
);
CREATE TABLE table_1_11908801_1 (
Meaning text,
"Weight at birth" text,
Nickname text,
Gender text,
"Full Name" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the lowest overall year?`
```sql
| SELECT MIN(YEAR) FROM table_1_16677738_1 |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29908,
3112,
29915,
29879,
451,
590,
4982,
29908,
338,
278,
9212,
3611,
297,
694,
29889,
297,
4259,
17580,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29941,
29945,
29945,
29946,
29947,
29918,
29896,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29896,
29955,
29918,
29945,
313,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29896,
29947,
29900,
29953,
29918,
29906,
313,
13,
12,
29908,
29911,
307,
1725,
29877,
23786,
8583,
29908,
1426,
29892,
13,
12,
27276,
1426,
29892,
13,
12,
29908,
20325,
12965,
29908,
1426,
29892,
13,
12,
29908,
3492,
865,
364,
1241,
12965,
29908,
1426,
29892,
13,
12,
29908,
15263,
12965,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
27648,
2708,
12965,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29945,
29906,
29955,
29953,
29945,
29906,
29947,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29945,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29929,
29906,
29941,
29900,
29918,
29946,
313,
13,
12,
29908,
29934,
290,
1175,
29875,
3611,
29908,
1426,
29892,
13,
12,
7422,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
29892,
13,
12,
29949,
2200,
265,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29908,
3112,
29915,
29879,
451,
590,
4982,
29908,
338,
278,
9212,
3611,
297,
694,
29889,
297,
4259,
17580,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
3782,
29889,
297,
4259,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29906,
29955,
29953,
29945,
29906,
29947,
29918,
29906,
5754,
376,
7030,
29908,
306,
5265,
6059,
14210,
29908,
3112,
29915,
29879,
29995,
12256,
29995,
3421,
29995,
11947,
29908,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
703,
3782,
29889,
297,
4259,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29906,
29955,
29953,
29945,
29906,
29947,
29918,
29906,
5754,
376,
7030,
29908,
306,
5265,
6059,
14210,
29908,
3112,
29915,
29879,
29995,
12256,
29995,
3421,
29995,
11947,
29908,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`"It's not my job" is the minimum title in no. in season.`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10935548_1 (
"No. in season" numeric,
"Production code" text,
"Original air date" text,
"Directed by" text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_1_1140117_5 (
"Race Name" text,
"Winning driver" text,
Report text,
Date text,
Circuit text,
Constructor text
);
CREATE TABLE table_1_12261806_2 (
"Trofeo Fast Team" text,
Stage text,
"Points classification" text,
"Young rider classification" text,
"General classification" text,
Winner text,
"Mountains classification" text
);
CREATE TABLE table_1_25276528_2 (
"No. in series" numeric,
"Directed by" text,
"Original air date" text,
Title text,
"No. in season" numeric,
"Written by" text
);
CREATE TABLE table_1_11545282_5 (
Player text,
Position text,
"School/Club Team" text,
Nationality text,
"No." text,
"Years for Jazz" text
);
CREATE TABLE table_1_10979230_4 (
"Romaji title" text,
Reference text,
"Release date" text,
"Japanese title" text,
Oricon numeric
);
```
### Answer
Here is the SQL query that answers the question:
`"It's not my job" is the minimum title in no. in season.`
```sql
| SELECT MIN("No. in season") FROM table_1_25276528_2 WHERE "Title" ILIKE '%"It's%NOT%My%Job"%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2635,
411,
278,
1887,
1024,
29892,
11650,
11635,
29942,
5395,
531,
29927,
2384,
1910,
29892,
6025,
4192,
30044,
485,
13887,
269,
6050,
7253,
29892,
322,
825,
338,
6339,
29871,
29896,
29945,
29892,
29871,
29906,
29900,
29896,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29896,
29906,
29900,
29947,
29900,
29918,
29896,
313,
13,
12,
29908,
29906,
29900,
29896,
29941,
4712,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
7717,
4408,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29906,
4712,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29953,
29945,
29955,
29947,
29918,
29906,
313,
13,
12,
29963,
29877,
440,
2631,
4034,
1426,
29892,
13,
12,
4920,
1030,
14641,
1426,
29892,
13,
12,
12415,
2410,
1426,
29892,
13,
12,
29908,
12310,
2785,
313,
29896,
29929,
29947,
29900,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
310,
11984,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
310,
14368,
29908,
16985,
29892,
13,
12,
29908,
13799,
2383,
30088,
313,
29896,
29929,
29929,
29947,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29953,
313,
13,
12,
20779,
1426,
29892,
13,
12,
29940,
290,
3381,
1426,
29892,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
29892,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
2635,
411,
278,
1887,
1024,
29892,
11650,
11635,
29942,
5395,
531,
29927,
2384,
1910,
29892,
6025,
4192,
30044,
485,
13887,
269,
6050,
7253,
29892,
322,
825,
338,
6339,
29871,
29896,
29945,
29892,
29871,
29906,
29900,
29896,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29896,
29906,
29900,
29947,
29900,
29918,
29896,
5754,
376,
7717,
4408,
29908,
306,
5265,
6059,
14210,
6798,
29995,
29957,
29927,
2711,
29942,
5395,
29995,
29935,
29927,
2384,
1910,
24163,
18386,
29995,
7707,
30044,
485,
13887,
29995,
29879,
6050,
7253,
29001,
5300,
376,
29906,
29900,
29896,
29906,
4712,
29908,
306,
5265,
6059,
14210,
29888,
3205,
653,
29995,
29896,
29945,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29896,
29906,
29900,
29947,
29900,
29918,
29896,
5754,
376,
7717,
4408,
29908,
306,
5265,
6059,
14210,
6798,
29995,
29957,
29927,
2711,
29942,
5395,
29995,
29935,
29927,
2384,
1910,
24163,
18386,
29995,
7707,
30044,
485,
13887,
29995,
29879,
6050,
7253,
29001,
5300,
376,
29906,
29900,
29896,
29906,
4712,
29908,
306,
5265,
6059,
14210,
29888,
3205,
653,
29995,
29896,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the date with the local name, дан државности србије, dan državnosti srbije, and what is February 15, 2012?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18012080_1 (
"2013 Date" text,
Date text,
"Local Name" text,
Name text,
"2012 Date" text
);
CREATE TABLE table_1_11656578_2 (
Voivodeship text,
Abbreviation text,
Capital text,
"Population (1980)" text,
"No. of communes" numeric,
"No. of cities" numeric,
"Area km² (1998)" text
);
CREATE TABLE table_1_10236830_6 (
Country text,
Nomination text,
"Film Name" text,
"Actors Name" text,
Director text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the date with the local name, дан државности србије, dan državnosti srbije, and what is February 15, 2012?`
```sql
| SELECT Date FROM table_2_18012080_1 WHERE "Local Name" ILIKE '%дан%државности%србије,%dan%državnosti%srbije%' AND "2012 Date" ILIKE '%february%15%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
892,
278,
350,
3973,
414,
29871,
29906,
29955,
29899,
29941,
29896,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29906,
313,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
29892,
13,
12,
29164,
8276,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29953,
313,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29946,
29896,
29945,
29946,
29945,
29918,
29945,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29931,
2209,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29947,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29941,
313,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
10401,
892,
278,
350,
3973,
414,
29871,
29906,
29955,
29899,
29941,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29946,
29896,
29945,
29946,
29945,
29918,
29945,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29906,
29955,
29899,
29941,
29896,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29946,
29896,
29945,
29946,
29945,
29918,
29945,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29906,
29955,
29899,
29941,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When were the Brewers 27-31?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11274401_2 (
Episode text,
"18–49 (Rating/Share)" text,
"No." numeric,
Share numeric,
"Viewers (m)" text,
"Air Date" text,
Rating text,
"Rank (#)" text,
Timeslot text
);
CREATE TABLE table_1_11734041_6 (
"Years for Rockets" text,
"No.(s)" text,
"Height in Ft." text,
Player text,
"School/Club Team/Country" text,
Position text
);
CREATE TABLE table_2_13041545_5 (
Attendance numeric,
Opponent text,
Score text,
Date text,
Record text,
Loss text
);
CREATE TABLE table_1_11677100_18 (
School text,
Hometown text,
Position text,
"MLB Draft" text
);
CREATE TABLE table_1_11391954_3 (
"Half Marathon (mens)" numeric,
Total numeric,
"Marathon (mens)" numeric,
Country text,
"Half Marathon (womens)" numeric,
"Marathon (womens)" numeric
);
CREATE TABLE table_1_12159115_3 (
"Season #" numeric,
"Series #" numeric,
"Original air date" text,
"Production code" text,
Title text,
"Written by" text,
"U.S. viewers (millions)" text,
"Directed by" text
);
```
### Answer
Here is the SQL query that answers the question:
`When were the Brewers 27-31?`
```sql
| SELECT Date FROM table_2_13041545_5 WHERE "Record" ILIKE '%27-31%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29906,
29900,
29896,
29941,
29899,
29906,
29900,
29896,
29946,
8542,
363,
278,
11902,
369,
3391,
12533,
11821,
29883,
1446,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29945,
29941,
29906,
29945,
29918,
29946,
313,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
29908,
29933,
3389,
359,
11719,
29908,
1426,
29892,
13,
12,
17618,
1725,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
29908,
29931,
575,
11719,
29908,
1426,
29892,
13,
12,
29908,
1433,
2435,
267,
11719,
29908,
1426,
29892,
13,
12,
29908,
29907,
336,
23379,
11719,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29955,
29955,
29941,
29918,
29945,
313,
13,
12,
29908,
29925,
7202,
5167,
29908,
1426,
29892,
13,
12,
4002,
647,
1426,
29892,
13,
12,
29908,
11816,
292,
10554,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
26246,
29908,
1426,
29892,
13,
12,
12614,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
29908,
6730,
8373,
26428,
1815,
22603,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29947,
29896,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
29943,
473,
386,
8905,
29908,
1426,
29892,
13,
12,
29908,
1349,
1823,
8905,
29908,
1426,
29892,
13,
12,
20622,
29879,
1426,
29892,
13,
12,
29908,
11863,
8905,
29908,
1426,
29892,
13,
12,
29908,
6730,
8905,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29941,
29945,
29945,
29906,
29906,
29918,
29946,
313,
13,
12,
29908,
29906,
29900,
29896,
29941,
29994,
29896,
29946,
8542,
29908,
1426,
29892,
13,
12,
29908,
12883,
7802,
13225,
29908,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
11574,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
11536,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
313,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
19204,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29906,
29900,
29896,
29941,
29899,
29906,
29900,
29896,
29946,
8542,
363,
278,
11902,
369,
3391,
12533,
11821,
29883,
1446,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29906,
29900,
29896,
29941,
29994,
29896,
29946,
8542,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29941,
29945,
29945,
29906,
29906,
29918,
29946,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
24437,
369,
3391,
12533,
29995,
29893,
789,
29883,
1446,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29906,
29900,
29896,
29941,
29994,
29896,
29946,
8542,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29941,
29945,
29945,
29906,
29906,
29918,
29946,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
24437,
369,
3391,
12533,
29995,
29893,
789,
29883,
1446,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the 2013-2014 division for the Wolverhampton Wildcats?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12305325_4 (
Eliminated text,
"Brunos vote" text,
Safe text,
Week numeric,
"Lens vote" text,
"Arlenes vote" text,
"Craigs vote" text
);
CREATE TABLE table_1_11900773_5 (
"Paper Type" text,
Design text,
"Printing Process" text,
"Date of Issue" text,
Illustration text,
Denomination text,
Theme text,
"First Day Cover Cancellation" text
);
CREATE TABLE table_1_12148147_2 (
"Fourth Year" text,
"Third Year" text,
Subjects text,
"Second Year" text,
"First Year" text
);
CREATE TABLE table_2_16135522_4 (
"2013–14 division" text,
"Year entered league" numeric,
Team text,
Location text,
University text
);
CREATE TABLE table_1_11391954_3 (
"Half Marathon (womens)" numeric,
"Half Marathon (mens)" numeric,
"Marathon (womens)" numeric,
Country text,
"Marathon (mens)" numeric,
Total numeric
);
CREATE TABLE table_1_10748727_1 (
Races numeric,
Position text,
Poles numeric,
"F/Laps" numeric,
Podiums numeric,
Points text,
Season text,
Wins numeric,
"Team Name" text,
Series text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the 2013-2014 division for the Wolverhampton Wildcats?`
```sql
| SELECT "2013–14 division" FROM table_2_16135522_4 WHERE "Team" ILIKE '%wolverhampton%wildcats%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
526,
278,
11486,
310,
278,
282,
24701,
10929,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29900,
29946,
29955,
29918,
29947,
313,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
11184,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
855,
276,
557,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29931,
1479,
292,
885,
9386,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29896,
29947,
29929,
29918,
29896,
313,
13,
12,
29908,
6678,
284,
5167,
29908,
1426,
29892,
13,
12,
29908,
29933,
352,
1026,
323,
666,
9159,
29908,
1426,
29892,
13,
12,
29908,
16107,
5169,
3698,
29908,
1426,
29892,
13,
12,
29908,
4040,
4193,
8081,
14999,
9159,
29908,
1426,
29892,
13,
12,
29908,
5494,
303,
1160,
3553,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29896,
29906,
29947,
29946,
29946,
29918,
29945,
313,
13,
12,
17693,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29908,
29907,
6146,
26549,
583,
323,
5086,
3455,
29908,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
1170,
310,
12788,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
4712,
29908,
1426,
29892,
13,
12,
29908,
29933,
5315,
1939,
1213,
16985,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
526,
278,
11486,
310,
278,
282,
24701,
10929,
29973,
29952,
13,
28956,
2850,
13,
5097,
8695,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29896,
29906,
29947,
29946,
29946,
29918,
29945,
5754,
376,
17693,
29908,
306,
5265,
6059,
14210,
29886,
24701,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
8695,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29896,
29906,
29947,
29946,
29946,
29918,
29945,
5754,
376,
17693,
29908,
306,
5265,
6059,
14210,
29886,
24701,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What are the notes of the patience theme?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964047_8 (
Score text,
Record text,
Home text,
Attendance text,
Visitor text,
Streak text,
Date text,
"#" numeric,
"Leading scorer" text
);
CREATE TABLE table_1_1036189_1 (
"Functional Type" text,
"Bullet Tip Color" text,
"Other Features" text,
"Primer Annulus Color" text,
"Headstamp ID" text
);
CREATE TABLE table_2_18312844_5 (
Theme text,
"Runner-up" text,
"Celebrities Taking Part" text,
Notes text,
"Name of Battle" text,
"Broadcast Date" text,
"Battle No." numeric,
Winner text
);
```
### Answer
Here is the SQL query that answers the question:
`What are the notes of the patience theme?`
```sql
| SELECT Notes FROM table_2_18312844_5 WHERE "Theme" ILIKE '%patience%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3652,
1353,
363,
278,
12720,
3971,
491,
17773,
264,
11566,
11461,
322,
4699,
20807,
309,
13308,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29929,
29945,
29896,
29955,
29953,
29906,
29896,
29918,
29941,
313,
13,
12,
1043,
414,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29953,
29955,
29945,
29918,
29896,
313,
13,
12,
4300,
18411,
1426,
29892,
13,
12,
29925,
4901,
262,
1426,
29892,
13,
12,
1451,
8233,
1426,
29892,
13,
12,
20622,
1426,
29892,
13,
12,
1451,
3314,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29953,
29953,
29929,
29906,
29953,
29918,
29906,
313,
13,
12,
22676,
16985,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
7011,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29896,
29947,
29941,
29918,
29906,
313,
13,
12,
29908,
4557,
310,
22057,
313,
29956,
29967,
29907,
5513,
16985,
29892,
13,
12,
29908,
10095,
307,
4038,
29908,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
1718,
7698,
5513,
16985,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
3289,
1718,
29933,
5513,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
399,
29967,
29907,
1723,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3652,
1353,
363,
278,
12720,
3971,
491,
17773,
264,
11566,
11461,
322,
4699,
20807,
309,
13308,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
19204,
396,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29945,
29896,
29955,
29953,
29906,
29896,
29918,
29941,
5754,
376,
29956,
20833,
491,
29908,
306,
5265,
6059,
14210,
29968,
2021,
264,
29995,
29928,
348,
11461,
29995,
392,
29995,
19504,
29995,
29949,
29887,
309,
13308,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
703,
19204,
396,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29945,
29896,
29955,
29953,
29906,
29896,
29918,
29941,
5754,
376,
29956,
20833,
491,
29908,
306,
5265,
6059,
14210,
29968,
2021,
264,
29995,
29928,
348,
11461,
29995,
392,
29995,
19504,
29995,
29949,
29887,
309,
13308,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the series number for the episode written by Kristen Dunphy and David Ogilvy?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_19517621_3 (
Viewers numeric,
Title text,
"Episode #" numeric,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Series #" numeric
);
CREATE TABLE table_1_1216675_1 (
Translation text,
Pinyin text,
Chinese text,
Subject text,
Chapter numeric
);
CREATE TABLE table_1_10966926_2 (
Weight numeric,
"Player name" text,
Choice numeric,
Height text,
Position text,
College text,
Round numeric
);
CREATE TABLE table_1_1131183_2 (
"Number of Jews (WJC)" numeric,
"Metro area" text,
"Rank (ARDA)" numeric,
"Number of Jews (ASARB)" numeric,
"Rank ( WJC )" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the series number for the episode written by Kristen Dunphy and David Ogilvy?`
```sql
| SELECT MAX("Series #") FROM table_1_19517621_3 WHERE "Written by" ILIKE '%Kristen%Dunphy%and%David%Ogilvy%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
7115,
746,
29871,
29953,
29946,
29889,
29945,
338,
28189,
267,
29914,
2272,
2572,
4841,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29946,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29906,
29900,
29896,
29946,
29946,
29941,
29896,
29918,
29941,
313,
13,
12,
29928,
6085,
1953,
1426,
29892,
13,
12,
29908,
16616,
10619,
29879,
29908,
1426,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
29911,
2209,
267,
29914,
19737,
2572,
4841,
29908,
1426,
29892,
13,
12,
29911,
3774,
1847,
1426,
29892,
13,
12,
855,
348,
1372,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29929,
29906,
29953,
29953,
29918,
29947,
313,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
2481,
21497,
313,
29923,
1254,
5513,
1426,
29892,
13,
12,
29923,
3334,
2631,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
262,
14746,
5513,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29941,
313,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29908,
29956,
2770,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
28154,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2385,
2450,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
8091,
1426,
29892,
13,
12,
29943,
7261,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
7115,
746,
29871,
29953,
29946,
29889,
29945,
338,
28189,
267,
29914,
2272,
2572,
4841,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29934,
804,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29900,
29896,
29946,
29946,
29941,
29896,
29918,
29941,
5754,
376,
29911,
2209,
267,
29914,
19737,
2572,
4841,
29908,
306,
5265,
6059,
14210,
29953,
29946,
29889,
29945,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
29898,
29934,
804,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29900,
29896,
29946,
29946,
29941,
29896,
29918,
29941,
5754,
376,
29911,
2209,
267,
29914,
19737,
2572,
4841,
29908,
306,
5265,
6059,
14210,
29953,
29946,
29889,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the rank when 64.5 is tosses/pyramids?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1213511_4 (
"College/junior/club team" text,
Position text,
"Pick #" numeric,
Player text,
Nationality text,
"NHL team" text
);
CREATE TABLE table_1_22014431_3 (
Deductions text,
"Basic Elements" text,
"Team Name" text,
Total text,
Rank numeric,
"Tosses/Pyramids" text,
Tumbling text,
Stunts text
);
CREATE TABLE table_1_10819266_8 (
"TV season" text,
"Time slot (EST)" text,
Episodes numeric,
"Viewers (in millions)" text,
Season numeric,
"Season premiere" text,
"Season finale" text
);
CREATE TABLE table_1_10577579_3 (
Institution text,
"Women’s Nickname" text,
Enrollment numeric,
"Men’s Nickname" text,
Location text,
Classification text,
Joined text,
"Current Conference" text,
Type text,
Left text,
Founded numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the rank when 64.5 is tosses/pyramids?`
```sql
| SELECT MAX(Rank) FROM table_1_22014431_3 WHERE "Tosses/Pyramids" ILIKE '%64.5%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
24791,
750,
360,
870,
3905,
3303,
408,
263,
399,
3993,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29896,
29900,
29900,
29947,
29955,
29918,
29953,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29929,
29906,
29929,
29953,
29955,
29941,
29918,
29906,
313,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29956,
16697,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29953,
29906,
29900,
29947,
29918,
29945,
313,
13,
12,
29908,
8120,
1338,
1152,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
1152,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
24791,
750,
360,
870,
3905,
3303,
408,
263,
399,
3993,
29973,
29952,
13,
28956,
2850,
13,
5097,
24791,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29929,
29906,
29929,
29953,
29955,
29941,
29918,
29906,
5754,
376,
29956,
16697,
29908,
306,
5265,
6059,
14210,
700,
299,
3905,
29995,
348,
1573,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
24791,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29929,
29906,
29929,
29953,
29955,
29941,
29918,
29906,
5754,
376,
29956,
16697,
29908,
306,
5265,
6059,
14210,
700,
299,
3905,
29995,
348,
1573,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What Season had Dundee United as a Winner?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10610087_6 (
"Directed by" text,
"Original air date" text,
Title text,
"Written by" text,
"No. in series" numeric,
"No. in season" numeric
);
CREATE TABLE table_2_10929673_2 (
Venue text,
Score text,
"Runners-up" text,
Season text,
Winners text
);
CREATE TABLE table_1_1246208_5 (
"Goals For Avg." text,
"Goals Against Avg." text,
"Goals For" numeric,
"Goals Against" numeric,
Club text,
"Overall Record" text
);
```
### Answer
Here is the SQL query that answers the question:
`What Season had Dundee United as a Winner?`
```sql
| SELECT Season FROM table_2_10929673_2 WHERE "Winners" ILIKE '%dundee%united%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
526,
6588,
6826,
267,
411,
29871,
29900,
4418,
1973,
29892,
696,
3522,
310,
1105,
29891,
3365,
29892,
322,
3109,
1135,
29871,
29896,
29906,
2551,
267,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29955,
29906,
29906,
29946,
29918,
29896,
313,
13,
12,
10649,
2478,
1426,
29892,
13,
12,
29908,
29925,
26310,
3309,
29908,
1426,
29892,
13,
12,
29908,
29903,
1022,
284,
2920,
29908,
1426,
29892,
13,
12,
29908,
29903,
1022,
284,
3309,
29908,
1426,
29892,
13,
12,
29908,
29925,
26310,
2920,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29929,
29900,
29918,
29953,
313,
13,
12,
23770,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29896,
313,
13,
12,
8003,
1426,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29929,
29946,
29946,
29896,
29896,
29918,
29955,
313,
13,
12,
20779,
1426,
29892,
13,
12,
16243,
1973,
16985,
29892,
13,
12,
27104,
1426,
29892,
13,
12,
14191,
267,
16985,
29892,
13,
12,
29908,
7439,
616,
4418,
1973,
29908,
16985,
29892,
13,
12,
29934,
9749,
1426,
29892,
13,
12,
17641,
267,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
526,
6588,
6826,
267,
411,
29871,
29900,
4418,
1973,
29892,
696,
3522,
310,
1105,
29891,
3365,
29892,
322,
3109,
1135,
29871,
29896,
29906,
2551,
267,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
17641,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29929,
29946,
29946,
29896,
29896,
29918,
29955,
5754,
376,
16243,
1973,
29908,
353,
525,
29900,
29915,
5300,
376,
29934,
9749,
29908,
306,
5265,
6059,
14210,
578,
29891,
3365,
29001,
5300,
376,
14191,
267,
29908,
529,
525,
29896,
29906,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
16884,
29954,
29898,
17641,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29929,
29946,
29946,
29896,
29896,
29918,
29955,
5754,
376,
16243,
1973,
29908,
353,
525,
29900,
29915,
5300,
376,
29934,
9749,
29908,
306,
5265,
6059,
14210,
578,
29891,
3365,
29001,
5300,
376,
14191,
267,
29908,
529,
525,
29896,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10477224_1 (
Species text,
"Petal length" text,
"Sepal width" text,
"Sepal length" text,
"Petal width" text
);
CREATE TABLE table_1_1140090_6 (
Constructor text,
Date text,
Report text,
Circuit text,
"Race Name" text,
"Winning driver" text
);
CREATE TABLE table_1_1012730_1 (
Position text,
Starts numeric,
"Top 10" numeric,
"Avg. Start" text,
Wins numeric,
Year numeric,
"Avg. Finish" text,
"Team(s)" text,
Poles numeric,
Winnings text,
"Top 5" numeric
);
CREATE TABLE table_2_13894411_7 (
Country text,
Failures numeric,
Family text,
Successes numeric,
"Partial failures" numeric,
Rocket text,
Launches numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes?`
```sql
| SELECT AVG(Launches) FROM table_2_13894411_7 WHERE "Failures" = '0' AND "Rocket" ILIKE '%soyuz%' AND "Successes" < '12' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
6475,
505,
4628,
889,
5861,
3291,
408,
29871,
29896,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29929,
29896,
29896,
29953,
29906,
29918,
29896,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
18700,
8360,
5861,
3291,
29908,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29949,
407,
265,
1237,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29946,
29941,
29947,
29945,
29918,
29896,
313,
13,
12,
29908,
22406,
313,
6360,
29879,
29892,
3841,
5513,
1426,
29892,
13,
12,
29908,
17946,
4712,
29908,
1426,
29892,
13,
12,
29908,
29950,
1709,
1840,
29908,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
5044,
4712,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
1123,
6338,
1230,
1426,
29892,
13,
12,
29908,
2792,
6766,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29955,
29947,
29945,
29906,
29918,
29896,
313,
13,
12,
29908,
16885,
310,
19405,
29914,
9802,
300,
29908,
1426,
29892,
13,
12,
22814,
1426,
29892,
13,
12,
29908,
29949,
1233,
287,
1951,
29908,
1426,
29892,
13,
12,
29908,
12883,
310,
23736,
362,
29908,
1426,
29892,
13,
12,
29908,
13599,
5648,
313,
360,
29911,
1723,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29946,
29941,
29947,
29941,
29918,
29896,
313,
13,
12,
29931,
361,
267,
8357,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
5044,
310,
1840,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
4892,
29908,
1426,
29892,
13,
12,
13504,
1693,
1426,
29892,
13,
12,
29908,
22406,
472,
15069,
2633,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
15069,
2633,
29908,
1426,
29892,
13,
12,
29908,
6513,
310,
3240,
19211,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
6475,
505,
4628,
889,
5861,
3291,
408,
29871,
29896,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
9182,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29929,
29896,
29896,
29953,
29906,
29918,
29896,
5754,
376,
18700,
8360,
5861,
3291,
29908,
353,
525,
29896,
29955,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
29898,
9182,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29929,
29896,
29896,
29953,
29906,
29918,
29896,
5754,
376,
18700,
8360,
5861,
3291,
29908,
353,
525,
29896,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many records have black knights points as 17?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_21091162_1 (
Game numeric,
"Black Knights points" numeric,
Record text,
Date text,
Result text,
Opponent text,
Opponents numeric
);
CREATE TABLE table_1_10284385_1 (
"Age (years, days)" text,
"Begin Date" text,
"House term" text,
Party text,
"End Date" text,
"Date of birth" text,
Representative text,
"State served" text
);
CREATE TABLE table_1_11147852_1 (
"City of license/Market" text,
Station text,
"Owned since" text,
"Year of affiliation" text,
"Channel TV ( DT )" text
);
CREATE TABLE table_1_12134383_1 (
Lifespan text,
"#" numeric,
"End of term" text,
"Date of death" text,
President text,
"Age at inauguration" text,
"Date of inauguration" text,
"Length of retirement" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many records have black knights points as 17?`
```sql
| SELECT COUNT(Record) FROM table_1_21091162_1 WHERE "Black Knights points" = '17' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2635,
471,
8649,
11358,
278,
3271,
3815,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29900,
29947,
29896,
29906,
29945,
29918,
29945,
313,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
29911,
347,
694,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29900,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29941,
29945,
29941,
29953,
29918,
29896,
29896,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29946,
29945,
29900,
29941,
29918,
29896,
313,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
28877,
29899,
786,
29908,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
19576,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
2635,
471,
8649,
11358,
278,
3271,
3815,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29900,
29947,
29896,
29906,
29945,
29918,
29945,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
19958,
11358,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29900,
29947,
29896,
29906,
29945,
29918,
29945,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
19958,
11358,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What date was Millwall the home team?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17608125_5 (
"Home team" text,
"Tie no" text,
Date text,
Score text,
"Away team" text
);
CREATE TABLE table_1_11734041_10 (
"School/Club Team/Country" text,
"No.(s)" text,
"Years for Rockets" text,
Player text,
"Height in Ft." text,
Position text
);
CREATE TABLE table_1_11963536_11 (
Series text,
"High assists" text,
Team text,
"Location Attendance" text,
Game numeric,
"High points" text,
"High rebounds" text
);
CREATE TABLE table_1_12444503_1 (
Winner text,
Season text,
"lost to eventual runner-up" text,
"Runner-up" text,
"lost to eventual winner" text
);
```
### Answer
Here is the SQL query that answers the question:
`What date was Millwall the home team?`
```sql
| SELECT Date FROM table_2_17608125_5 WHERE "Home team" ILIKE '%millwall%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
25039,
1299,
319,
1525,
6093,
379,
6259,
9606,
1254,
349,
6992,
9375,
22659,
21947,
1964,
29903,
365,
1718,
17070,
3446,
2190,
29871,
29946,
29947,
29892,
399,
1177,
29903,
11060,
1799,
3446,
2190,
29871,
29896,
29929,
29892,
21947,
1964,
29903,
319,
12739,
25580,
317,
1529,
2208,
1001,
3446,
2190,
29871,
29946,
29946,
29892,
360,
4717,
7811,
365,
1718,
17070,
3446,
2190,
29871,
29945,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29946,
29900,
29947,
29896,
29929,
29918,
29906,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29931,
2209,
267,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
29908,
8120,
1338,
363,
29908,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29908,
8120,
1338,
2750,
29908,
16985,
29892,
13,
12,
29908,
8120,
284,
360,
17678,
29908,
16985,
29892,
13,
12,
13454,
287,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29896,
29953,
29900,
29896,
29918,
29906,
313,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29896,
29900,
29871,
29953,
323,
787,
29897,
313,
29906,
29900,
29900,
29953,
5513,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
25477,
639,
2383,
29871,
29906,
310,
967,
2982,
313,
7453,
5513,
16985,
29892,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29911,
787,
639,
2022,
29897,
313,
29906,
29900,
29900,
29955,
5513,
1426,
29892,
13,
12,
29908,
27933,
482,
310,
5534,
3001,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
25039,
1299,
319,
1525,
6093,
379,
6259,
9606,
1254,
349,
6992,
9375,
22659,
21947,
1964,
29903,
365,
1718,
17070,
3446,
2190,
29871,
29946,
29947,
29892,
399,
1177,
29903,
11060,
1799,
3446,
2190,
29871,
29896,
29929,
29892,
21947,
1964,
29903,
319,
12739,
25580,
317,
1529,
2208,
1001,
3446,
2190,
29871,
29946,
29946,
29892,
360,
4717,
7811,
365,
1718,
17070,
3446,
2190,
29871,
29945,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29946,
29900,
29947,
29896,
29929,
29918,
29906,
5754,
376,
8120,
1338,
363,
29908,
1405,
525,
29946,
29947,
29915,
5300,
376,
29956,
1144,
29908,
529,
525,
29896,
29929,
29915,
5300,
376,
8120,
1338,
2750,
29908,
529,
525,
29946,
29946,
29915,
5300,
376,
8537,
29879,
29908,
1405,
525,
29945,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29946,
29900,
29947,
29896,
29929,
29918,
29906,
5754,
376,
8120,
1338,
363,
29908,
1405,
525,
29946,
29947,
29915,
5300,
376,
29956,
1144,
29908,
529,
525,
29896,
29929,
29915,
5300,
376,
8120,
1338,
2750,
29908,
529,
525,
29946,
29946,
29915,
5300,
376,
8537,
29879,
29908,
1405,
525,
29945,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17740819_2 (
Wins numeric,
Losses numeric,
Club text,
Position numeric,
Draws numeric,
"Goals for" numeric,
Points numeric,
"Goals against" numeric,
"Goal Difference" numeric,
Played numeric
);
CREATE TABLE table_1_11251601_2 (
Country text,
"Carbon dioxide emissions per year (10 6 Tons) (2006)" numeric,
"Avg. emission per km 2 of its land (tons)" numeric,
"Carbon dioxide emissions per year (Tons per person) (2007)" text,
"Percentage of global total" text
);
```
### Answer
Here is the SQL query that answers the question:
`WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5?`
```sql
| SELECT MAX(Points) FROM table_2_17740819_2 WHERE "Goals for" > '48' AND "Wins" < '19' AND "Goals against" < '44' AND "Draws" > '5' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
21957,
363,
278,
9184,
29871,
29906,
29892,
12730,
14743,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29934,
815,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29945,
29929,
29953,
29929,
29955,
29918,
29947,
313,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29949,
407,
265,
1237,
297,
278,
2186,
29908,
1426,
29892,
13,
12,
7439,
1089,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
3744,
2763,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29953,
29929,
29896,
29953,
29918,
29906,
313,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
21957,
363,
278,
9184,
29871,
29906,
29892,
12730,
14743,
29973,
29952,
13,
28956,
2850,
13,
5097,
4451,
2763,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29945,
29929,
29953,
29929,
29955,
29918,
29947,
5754,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
4871,
29995,
29906,
24163,
2410,
29891,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
4451,
2763,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29945,
29929,
29953,
29929,
29955,
29918,
29947,
5754,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
4871,
29995,
29906,
24163,
2410,
29891,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the outcome for the Rome 2, Italy tournament?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11713303_2 (
"Outgoing manager" text,
"Date of appointment" text,
"Replaced by" text,
"Date of vacancy" text,
Team text,
"Manner of departure" text
);
CREATE TABLE table_1_1140080_2 (
Race text,
Report text,
"Race Winner" text,
"Fastest Lap" text,
"Pole Position" text,
Rnd numeric,
Constructor text,
Location text
);
CREATE TABLE table_2_12259697_8 (
Date text,
Score text,
"Opponents in the final" text,
Partner text,
Surface text,
Outcome text,
Tournament text
);
CREATE TABLE table_1_11206916_2 (
"Date of vacancy" text,
"Outgoing manager" text,
"Date of appointment" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the outcome for the Rome 2, Italy tournament?`
```sql
| SELECT Outcome FROM table_2_12259697_8 WHERE "Tournament" ILIKE '%rome%2,%italy%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
3697,
363,
29871,
29906,
29900,
29900,
29955,
472,
278,
19025,
12482,
408,
14743,
17580,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29955,
29945,
29929,
29900,
29918,
29896,
313,
13,
12,
29908,
29954,
1280,
4687,
29908,
16985,
29892,
13,
12,
29979,
3163,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
4074,
1441,
29879,
16985,
29892,
13,
12,
15852,
3204,
29879,
16985,
29892,
13,
12,
4165,
3456,
29879,
16985,
29892,
13,
12,
29908,
29979,
3163,
29914,
4165,
3456,
29908,
1426,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
29908,
28958,
1273,
29908,
1426,
29892,
13,
12,
8909,
29873,
1080,
16985,
29892,
13,
12,
29934,
1218,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29929,
29941,
29953,
29906,
29918,
29896,
29941,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29906,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29955,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29947,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29896,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
3697,
363,
29871,
29906,
29900,
29900,
29955,
472,
278,
19025,
12482,
408,
14743,
17580,
13,
28956,
2850,
13,
5097,
29871,
29906,
29900,
29900,
29955,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29929,
29941,
29953,
29906,
29918,
29896,
29941,
5754,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
324,
962,
16447,
29995,
29887,
1280,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
29871,
29906,
29900,
29900,
29955,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29929,
29941,
29953,
29906,
29918,
29896,
29941,
5754,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
324,
962,
16447,
29995,
29887,
1280,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What shows for 2007 at the Olympic Games as tournament.`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1037590_1 (
"Games started" numeric,
Yards numeric,
Year numeric,
Interceptions numeric,
Touchdowns numeric,
Attempts numeric,
"Yards/Attempt" text,
Games numeric,
"Completion %" text,
Completions numeric,
Rating text
);
CREATE TABLE table_2_12209362_13 (
Tournament text,
"2012" text,
"2007" text,
"2010" text,
"2009" text,
"2008" text,
"2011" text
);
```
### Answer
Here is the SQL query that answers the question:
`What shows for 2007 at the Olympic Games as tournament.`
```sql
| SELECT 2007 FROM table_2_12209362_13 WHERE "Tournament" ILIKE '%olympic%games%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
746,
1352,
6102,
895,
360,
1276,
29878,
471,
18096,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29900,
29918,
29906,
313,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
13,
12,
29908,
29943,
814,
1793,
19257,
29908,
1426,
29892,
13,
12,
29908,
23859,
12060,
29879,
29908,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29907,
582,
311,
12060,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29907,
582,
311,
4892,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
29908,
1426,
29892,
13,
12,
29908,
29909,
19698,
4665,
313,
29916,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29947,
29946,
29906,
29918,
29896,
313,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29955,
29906,
29955,
29941,
29918,
29906,
313,
13,
12,
3744,
2763,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
29949,
407,
265,
1237,
1426,
29892,
13,
12,
7439,
1089,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
746,
1352,
6102,
895,
360,
1276,
29878,
471,
18096,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29955,
29906,
29955,
29941,
29918,
29906,
5754,
376,
7439,
1089,
29908,
306,
5265,
6059,
14210,
7675,
6102,
895,
29995,
29928,
1276,
29878,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
2522,
487,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29955,
29906,
29955,
29941,
29918,
29906,
5754,
376,
7439,
1089,
29908,
306,
5265,
6059,
14210,
7675,
6102,
895,
29995,
29928,
1276,
29878,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the score when Françoise Dürr was partner?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12060_2 (
"unnamed_0" numeric,
"Fertility rates" text,
"Live births" text,
Deaths text,
"Natural change (per 1000)" text,
"Crude birth rate (per 1000)" text,
"Crude death rate (per 1000)" text,
"Natural change" text,
"Average population (x 1000)" text
);
CREATE TABLE table_1_1183842_1 (
Institution text,
Joined numeric,
Founded numeric,
Type text,
Nickname text,
Enrollment numeric,
Location text
);
CREATE TABLE table_1_177273_2 (
Outcome text,
Score text,
Championship text,
Surface text,
Opponents text,
Partner text,
Year numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What was the score when Françoise Dürr was partner?`
```sql
| SELECT Score FROM table_1_177273_2 WHERE "Partner" ILIKE '%Françoise%Dürr%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1629,
1258,
1472,
6115,
16372,
5967,
278,
21362,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29941,
313,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
8091,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
29943,
7261,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29955,
29945,
29929,
29900,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
4074,
1441,
29879,
16985,
29892,
13,
12,
4165,
3456,
29879,
16985,
29892,
13,
12,
29979,
3163,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29979,
3163,
29914,
4165,
3456,
29908,
1426,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
15852,
3204,
29879,
16985,
29892,
13,
12,
8909,
29873,
1080,
16985,
29892,
13,
12,
29908,
28958,
1273,
29908,
1426,
29892,
13,
12,
29908,
29954,
1280,
4687,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29953,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29941,
29900,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29941,
29929,
29953,
29953,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
8120,
1338,
2750,
29908,
16985,
29892,
13,
12,
29956,
265,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29908,
8120,
1338,
363,
29908,
16985,
29892,
13,
12,
29911,
1000,
16985,
29892,
13,
12,
29908,
29925,
312,
1273,
29908,
1426,
29892,
13,
12,
11042,
292,
1426,
29892,
13,
12,
29931,
520,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29953,
29929,
29947,
29918,
29896,
313,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
29908,
7031,
885,
9386,
29908,
1426,
29892,
13,
12,
29908,
1349,
1823,
2058,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
1629,
1258,
1472,
6115,
16372,
5967,
278,
21362,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
28024,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29941,
5754,
376,
3379,
5008,
29908,
306,
5265,
6059,
14210,
8208,
6115,
29995,
11574,
537,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
29898,
28024,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29941,
5754,
376,
3379,
5008,
29908,
306,
5265,
6059,
14210,
8208,
6115,
29995,
11574,
537,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What year did longwood university leave the conference?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11658094_3 (
Institution text,
Left numeric,
Location text,
Enrollment numeric,
Joined numeric,
Type text,
Nickname text,
"Current Conference" text,
Founded numeric
);
CREATE TABLE table_1_1037590_1 (
Year numeric,
Interceptions numeric,
Attempts numeric,
Yards numeric,
Rating text,
"Yards/Attempt" text,
Games numeric,
Touchdowns numeric,
Completions numeric,
"Completion %" text,
"Games started" numeric
);
CREATE TABLE table_1_11960610_6 (
Game numeric,
"Location Attendance" text,
Date text,
"High points" text,
"High assists" text,
Score text,
"High rebounds" text,
Record text,
Team text
);
CREATE TABLE table_1_12033013_1 (
"No. in series" numeric,
"Original air date" text,
"Written by" text,
Title text,
"Production code" text,
"Directed by" text
);
CREATE TABLE table_1_1143966_1 (
Season text,
"Goals against" numeric,
Won numeric,
Points numeric,
"Goals for" numeric,
Tied numeric,
"Pct %" text,
Standing text,
Lost numeric
);
CREATE TABLE table_1_1167698_1 (
"Runner-up" text,
Champion text,
"Top scorer" text,
"Third place" text
);
```
### Answer
Here is the SQL query that answers the question:
`What year did longwood university leave the conference?`
```sql
| SELECT MIN(LEFT) FROM table_1_11658094_3 WHERE "Institution" ILIKE '%Longwood%University%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
797,
825,
1629,
1258,
2443,
16711,
17404,
455,
29895,
646,
5175,
1708,
1757,
29915,
29879,
2323,
322,
11230,
390,
625,
1708,
5866,
29915,
29879,
2323,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29906,
29896,
313,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29946,
29900,
29941,
29941,
29918,
29896,
313,
13,
12,
29908,
29928,
4154,
4134,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29928,
4154,
23868,
396,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
2008,
1658,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29953,
29929,
29953,
29906,
29947,
29918,
29906,
313,
13,
12,
29908,
29956,
2770,
29915,
29879,
19176,
7586,
29908,
1426,
29892,
13,
12,
29908,
29956,
2770,
29915,
29879,
22065,
29908,
1426,
29892,
13,
12,
29908,
28154,
29915,
29879,
22065,
29908,
1426,
29892,
13,
12,
29908,
28154,
29915,
29879,
19176,
7586,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
19176,
7586,
29908,
1426,
29892,
13,
12,
12883,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29929,
29900,
29918,
29953,
313,
13,
12,
23770,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29945,
29953,
29906,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
29907,
786,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
29907,
786,
2921,
1338,
29908,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
797,
825,
1629,
1258,
2443,
16711,
17404,
455,
29895,
646,
5175,
1708,
1757,
29915,
29879,
2323,
322,
11230,
390,
625,
1708,
5866,
29915,
29879,
2323,
29973,
29952,
13,
28956,
2850,
13,
5097,
612,
26441,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29953,
29929,
29953,
29906,
29947,
29918,
29906,
5754,
376,
28154,
29915,
29879,
22065,
29908,
306,
5265,
6059,
14210,
1655,
16711,
29995,
827,
29926,
455,
29895,
646,
5175,
29001,
5300,
376,
29956,
2770,
29915,
29879,
22065,
29908,
306,
5265,
6059,
14210,
9713,
29995,
11674,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
612,
26441,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29953,
29929,
29953,
29906,
29947,
29918,
29906,
5754,
376,
28154,
29915,
29879,
22065,
29908,
306,
5265,
6059,
14210,
1655,
16711,
29995,
827,
29926,
455,
29895,
646,
5175,
29001,
5300,
376,
29956,
2770,
29915,
29879,
22065,
29908,
306,
5265,
6059,
14210,
9713,
29995,
11674,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10015132_21 (
"Years in Toronto" text,
Nationality text,
"No." numeric,
Position text,
"School/Club Team" text,
Player text
);
CREATE TABLE table_1_1004033_1 (
"Draft Class" text,
Team text,
Position text,
"Draft Pick #" text,
College text,
Season numeric
);
CREATE TABLE table_2_10369628_2 (
"Women's Doubles" text,
"Women's Singles" text,
"Men's Singles" text,
"Men's Doubles" text,
"Mixed Doubles" text,
Year text
);
CREATE TABLE table_1_1140090_6 (
Constructor text,
Date text,
Circuit text,
"Winning driver" text,
Report text,
"Race Name" text
);
CREATE TABLE table_1_10556257_1 (
"Cup Apps" numeric,
"League Goals" numeric,
"League Apps" numeric,
"Cup Goals" numeric,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?`
```sql
| SELECT YEAR FROM table_2_10369628_2 WHERE "Men's Singles" ILIKE '%stephan%wojcikiewicz%' AND "Women's Singles" ILIKE '%anna%rice%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
3001,
14433,
892,
1754,
472,
278,
3748,
373,
29871,
29896,
29945,
3979,
29871,
29896,
29929,
29947,
29929,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29906,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29945,
29953,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
6508,
29914,
4165,
21642,
29908,
1426,
29892,
13,
12,
29908,
11184,
847,
319,
1582,
29908,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29941,
29918,
29953,
313,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29947,
29955,
29941,
29896,
29918,
29941,
313,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
8120,
284,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
3001,
14433,
892,
1754,
472,
278,
3748,
373,
29871,
29896,
29945,
3979,
29871,
29896,
29929,
29947,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
8120,
284,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29947,
29955,
29941,
29896,
29918,
29941,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29896,
29945,
29995,
13715,
1096,
29995,
29896,
29929,
29947,
29929,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
29898,
8120,
284,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29947,
29955,
29941,
29896,
29918,
29941,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29896,
29945,
29995,
13715,
1096,
29995,
29896,
29929,
29947,
29929,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many total goals were made at the game on 15 November 1989?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677691_2 (
School text,
College text,
Hometown text,
Position text,
Player text
);
CREATE TABLE table_1_10595672_1 (
"High rebounds" text,
"High assists" text,
"High points" text,
Record text,
"Location/Attendance" text,
"Home / Away" text,
Opponent text
);
CREATE TABLE table_1_1140103_6 (
Report text,
"Winning driver" text,
Circuit text,
Constructor text,
"Race Name" text,
"#" numeric
);
CREATE TABLE table_2_1208731_3 (
Competition text,
Score text,
Venue text,
Result text,
Date text,
Goal numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many total goals were made at the game on 15 November 1989?`
```sql
| SELECT COUNT(Goal) FROM table_2_1208731_3 WHERE "Date" ILIKE '%15%november%1989%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
8448,
756,
263,
2522,
487,
310,
29871,
29946,
29994,
29900,
322,
8984,
29879,
310,
29871,
29946,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29896,
29896,
29900,
29929,
29918,
29941,
313,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29164,
8276,
313,
29923,
1254,
5513,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
29908,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29906,
29900,
29947,
29947,
29945,
29900,
29918,
29946,
313,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
6185,
1096,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
8448,
756,
263,
2522,
487,
310,
29871,
29946,
29994,
29900,
322,
8984,
29879,
310,
29871,
29946,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
8448,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29906,
29900,
29947,
29947,
29945,
29900,
29918,
29946,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29946,
29994,
29900,
29001,
5300,
376,
20325,
29908,
353,
525,
29946,
29946,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
8448,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29906,
29900,
29947,
29947,
29945,
29900,
29918,
29946,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29946,
29994,
29900,
29001,
5300,
376,
20325,
29908,
353,
525,
29946,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Game has a Score of 4–0 and Points of 44?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11251109_3 (
Episode text,
"Viewers (m)" text,
"Air Date" text,
"Timeslot (EST)" text,
Season text,
"#" numeric,
Rating text,
Share numeric,
"18–49" text,
"Rank (#)" text
);
CREATE TABLE table_2_14208850_4 (
Game numeric,
Score text,
Opponent text,
Record text,
Points numeric,
December numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which Game has a Score of 4–0 and Points of 44?`
```sql
| SELECT Game FROM table_2_14208850_4 WHERE "Score" ILIKE '%4–0%' AND "Points" = '44' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2951,
825,
4712,
471,
278,
1993,
411,
18096,
476,
3055,
405,
6485,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29929,
29941,
29947,
29941,
29955,
29918,
29953,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
7439,
1089,
1426,
29892,
13,
12,
29908,
29949,
407,
265,
296,
297,
278,
2186,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29900,
29946,
29947,
29918,
29896,
313,
13,
12,
8003,
16985,
29892,
13,
12,
29908,
29928,
566,
2330,
323,
2707,
1032,
18416,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
17734,
29914,
29931,
2209,
29908,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
748,
2235,
6541,
29908,
1426,
29892,
13,
12,
7967,
496,
1426,
29892,
13,
12,
21133,
475,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2951,
825,
4712,
471,
278,
1993,
411,
18096,
476,
3055,
405,
6485,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29929,
29941,
29947,
29941,
29955,
29918,
29953,
5754,
376,
7439,
1089,
29908,
306,
5265,
6059,
14210,
1984,
336,
29995,
29876,
6485,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29929,
29941,
29947,
29941,
29955,
29918,
29953,
5754,
376,
7439,
1089,
29908,
306,
5265,
6059,
14210,
1984,
336,
29995,
29876,
6485,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`On what Date was the match with partner Kira Nagy?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_16893837_6 (
Tournament text,
Date text,
Surface text,
Score text,
Partner text,
"Opponent in the final" text
);
CREATE TABLE table_1_1165048_1 (
Position numeric,
"Dudley Tuckey Medal" text,
Season numeric,
"Win/Loss" text,
"Leading goalkicker" text,
Coach text,
Captain text
);
```
### Answer
Here is the SQL query that answers the question:
`On what Date was the match with partner Kira Nagy?`
```sql
| SELECT Date FROM table_2_16893837_6 WHERE "Partner" ILIKE '%kira%nagy%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1629,
756,
385,
2228,
8666,
975,
29871,
29896,
29945,
29889,
29929,
29945,
29892,
322,
263,
4266,
11486,
515,
1226,
14132,
265,
17182,
414,
19797,
731,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29900,
29953,
29896,
29906,
29918,
29929,
313,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29929,
29929,
29896,
29941,
29955,
29945,
29918,
29896,
29900,
313,
13,
12,
29908,
29902,
893,
434,
8666,
29908,
16985,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
29908,
24780,
11486,
29908,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29906,
29929,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29906,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
29906,
29900,
29900,
29896,
29899,
29900,
29906,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29941,
29899,
29900,
29946,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29953,
29899,
29900,
29955,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29906,
29899,
29900,
29941,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29946,
29899,
29900,
29945,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29945,
29899,
29900,
29953,
29908,
16985,
29892,
13,
12,
1523,
1545,
537,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
1629,
756,
385,
2228,
8666,
975,
29871,
29896,
29945,
29889,
29929,
29945,
29892,
322,
263,
4266,
11486,
515,
1226,
14132,
265,
17182,
414,
19797,
731,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29929,
29929,
29896,
29941,
29955,
29945,
29918,
29896,
29900,
5754,
376,
29902,
893,
434,
8666,
29908,
1405,
525,
29896,
29945,
29889,
29929,
29945,
29915,
5300,
376,
24780,
11486,
29908,
306,
5265,
6059,
14210,
3166,
29995,
287,
14132,
265,
29995,
29877,
22058,
29995,
29887,
2027,
29995,
842,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29929,
29929,
29896,
29941,
29955,
29945,
29918,
29896,
29900,
5754,
376,
29902,
893,
434,
8666,
29908,
1405,
525,
29896,
29945,
29889,
29929,
29945,
29915,
5300,
376,
24780,
11486,
29908,
306,
5265,
6059,
14210,
3166,
29995,
287,
14132,
265,
29995,
29877,
22058,
29995,
29887,
2027,
29995,
842,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What year has an issue price over 15.95, and a special notes from edmonton oilers gift set?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12030612_9 (
"Season #" numeric,
"Directed by" text,
"Original air date" text,
Title text,
"Written by" text,
"Series #" numeric
);
CREATE TABLE table_2_12991375_10 (
"Issue price" numeric,
Artist text,
"Special notes" text,
Theme text,
Year numeric
);
CREATE TABLE table_1_11622829_1 (
Tournament text,
"Purse( $ )" numeric,
"1st Prize( $ )" numeric,
Location text,
Winner text,
Score text,
Date text
);
CREATE TABLE table_1_1057262_1 (
"2001-02" numeric,
"2003-04" numeric,
"2006-07" numeric,
"2002-03" numeric,
"2004-05" numeric,
"2005-06" numeric,
Commodity text
);
```
### Answer
Here is the SQL query that answers the question:
`What year has an issue price over 15.95, and a special notes from edmonton oilers gift set?`
```sql
| SELECT COUNT(YEAR) FROM table_2_12991375_10 WHERE "Issue price" > '15.95' AND "Special notes" ILIKE '%from%edmonton%oilers%gift%set%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1121,
297,
29871,
29896,
29929,
29929,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29941,
313,
13,
12,
2713,
598,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29941,
29906,
29947,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29906,
29896,
29906,
29900,
29947,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29900,
29947,
29945,
29953,
29918,
29896,
313,
13,
12,
29908,
29896,
16200,
29908,
16985,
29892,
13,
12,
29908,
29906,
6625,
1169,
29908,
16985,
29892,
13,
12,
29908,
29946,
6625,
1169,
29908,
16985,
29892,
13,
12,
29908,
29941,
6625,
1169,
29908,
16985,
29892,
13,
12,
3481,
1426,
29892,
13,
12,
29908,
29945,
6625,
1169,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29946,
29947,
29896,
29947,
29918,
29896,
313,
13,
12,
29934,
618,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
9851,
29965,
12252,
3189,
496,
29908,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1121,
297,
29871,
29896,
29929,
29929,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29946,
29947,
29896,
29947,
29918,
29896,
5754,
376,
12883,
29908,
353,
525,
29896,
29929,
29929,
29946,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29946,
29947,
29896,
29947,
29918,
29896,
5754,
376,
12883,
29908,
353,
525,
29896,
29929,
29929,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the result in 1994?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11274401_3 (
Share text,
"18–49 (Rating/Share)" text,
"Air Date" text,
Episode text,
"Viewers (m)" text,
Rating text,
"No." numeric,
Timeslot text,
"Rank (#)" text
);
CREATE TABLE table_1_12232843_1 (
"Mens singles" text,
"Womens singles" text,
"Womens doubles" text,
"Mens doubles" text,
Season numeric,
"Mixed doubles" text
);
CREATE TABLE table_1_12121208_1 (
"Mixed doubles" text,
"Mens singles" text,
"Mens doubles" text
);
CREATE TABLE table_1_11200856_1 (
"1 credit" numeric,
"2 credits" numeric,
"4 credits" numeric,
"3 credits" numeric,
Hand text,
"5 credits" text
);
CREATE TABLE table_2_17064818_1 (
Round text,
Opponent text,
"BSU Head Coach" text,
Result text,
Year numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the result in 1994?`
```sql
| SELECT RESULT FROM table_2_17064818_1 WHERE "Year" = '1994' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3644,
278,
29871,
29896,
3308,
29928,
29922,
29871,
29945,
29892,
29929,
29896,
29953,
29889,
29906,
29955,
29892,
825,
338,
278,
19604,
29871,
29896,
11652,
5253,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29900,
29918,
29906,
313,
13,
12,
29908,
29907,
582,
311,
12060,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
13,
12,
29908,
23859,
12060,
29879,
29908,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29943,
814,
1793,
19257,
29908,
1426,
29892,
13,
12,
29908,
29909,
19698,
4665,
313,
29916,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
29908,
1426,
29892,
13,
12,
29908,
29907,
582,
311,
4892,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29896,
29946,
29945,
29941,
29918,
29906,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29949,
407,
265,
1237,
16985,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29963,
638,
886,
3291,
29908,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29906,
29953,
29945,
29941,
29918,
29896,
29900,
313,
13,
12,
29908,
23369,
1705,
9124,
29908,
1426,
29892,
13,
12,
29907,
10880,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29896,
11652,
29465,
16985,
29892,
13,
12,
29908,
29896,
3148,
29928,
29465,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29896,
29941,
29947,
29947,
29947,
29918,
29896,
313,
13,
12,
4557,
16985,
29892,
13,
12,
29908,
4421,
336,
2986,
29914,
29903,
1025,
29908,
1426,
29892,
13,
12,
3727,
2782,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
29908,
1170,
408,
337,
16145,
29908,
1426,
29892,
13,
12,
29934,
774,
29884,
2782,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29896,
29896,
29918,
29945,
313,
13,
12,
13020,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
3644,
278,
29871,
29896,
3308,
29928,
29922,
29871,
29945,
29892,
29929,
29896,
29953,
29889,
29906,
29955,
29892,
825,
338,
278,
19604,
29871,
29896,
11652,
5253,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
29896,
11652,
353,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29906,
29953,
29945,
29941,
29918,
29896,
29900,
5754,
376,
29896,
3148,
29928,
29465,
353,
525,
29945,
29892,
29929,
29896,
29953,
29889,
29906,
29955,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
341,
1177,
703,
29896,
11652,
353,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29906,
29953,
29945,
29941,
29918,
29896,
29900,
5754,
376,
29896,
3148,
29928,
29465,
353,
525,
29945,
29892,
29929,
29896,
29953,
29889,
29906,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`If the 1USD= 5,916.27, what is the lowest 1 Euro amount?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12060_2 (
"Crude birth rate (per 1000)" text,
"unnamed_0" numeric,
"Live births" text,
Deaths text,
"Natural change (per 1000)" text,
"Fertility rates" text,
"Average population (x 1000)" text,
"Natural change" text,
"Crude death rate (per 1000)" text
);
CREATE TABLE table_1_10361453_2 (
Game numeric,
Opponents numeric,
Attendance numeric,
Opponent text,
Date text,
"Vikings points" numeric,
Record text,
Result text
);
CREATE TABLE table_2_1222653_10 (
"Central bank" text,
Currency text,
Country text,
"1 Euro =" numeric,
"1 USD =" numeric
);
CREATE TABLE table_1_12113888_1 (
Number numeric,
"Scrapped/Sold" text,
Built text,
Builder text,
"Name as rebuilt" text,
Rebuilt text
);
CREATE TABLE table_1_1140111_5 (
Report text,
Circuit text,
"Race Name" text,
"Winning driver" text,
Constructor text
);
```
### Answer
Here is the SQL query that answers the question:
`If the 1USD= 5,916.27, what is the lowest 1 Euro amount?`
```sql
| SELECT MIN("1 Euro =") FROM table_2_1222653_10 WHERE "1 USD =" = '5,916.27' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
8984,
29879,
297,
20627,
29871,
29906,
411,
901,
1135,
29871,
29941,
16322,
1233,
8090,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29906,
29896,
29955,
29946,
29947,
29918,
29896,
313,
13,
12,
20325,
16985,
29892,
13,
12,
29928,
17678,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
24515,
1233,
16985,
29892,
13,
12,
13454,
287,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
14769,
475,
303,
16985,
29892,
13,
12,
29931,
520,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29947,
29946,
29953,
29945,
29918,
29896,
313,
13,
12,
29908,
7976,
1889,
943,
29908,
1426,
29892,
13,
12,
29908,
12739,
4712,
29908,
1426,
29892,
13,
12,
28283,
16985,
29892,
13,
12,
29908,
7976,
3370,
29908,
1426,
29892,
13,
12,
29908,
18689,
10868,
29908,
1426,
29892,
13,
12,
3195,
1426,
29892,
13,
12,
29908,
7976,
8086,
13284,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29941,
313,
13,
12,
2385,
2450,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29908,
28154,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
29908,
29956,
2770,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
8091,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
8984,
29879,
297,
20627,
29871,
29906,
411,
901,
1135,
29871,
29941,
16322,
1233,
8090,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29906,
29896,
29955,
29946,
29947,
29918,
29896,
5754,
376,
8003,
29908,
353,
525,
29906,
29915,
5300,
376,
24515,
1233,
29908,
1405,
525,
29941,
29915,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29906,
29896,
29955,
29946,
29947,
29918,
29896,
5754,
376,
8003,
29908,
353,
525,
29906,
29915,
5300,
376,
24515,
1233,
29908,
1405,
525,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest Points in Position 2 with more than 3 Drawn games?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15421748_1 (
Points numeric,
Difference text,
Team text,
Drawn numeric,
Played numeric,
Position numeric,
Against numeric,
Lost numeric
);
CREATE TABLE table_1_10818465_1 (
"Max processors" text,
"GA Date" text,
RU numeric,
"Max memory" text,
"Processor frequency" text,
Model text,
"Max disk capacity" text
);
CREATE TABLE table_1_10577579_3 (
Classification text,
Founded numeric,
Enrollment numeric,
Joined text,
Institution text,
Type text,
"Men’s Nickname" text,
Location text,
"Current Conference" text,
"Women’s Nickname" text,
Left text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest Points in Position 2 with more than 3 Drawn games?`
```sql
| SELECT MAX(Points) FROM table_2_15421748_1 WHERE "Position" = '2' AND "Drawn" > '3' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2951,
825,
2462,
471,
278,
14333,
749,
393,
750,
263,
323,
347,
995,
310,
29871,
29946,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29946,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29900,
29953,
29896,
29906,
29918,
29929,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29945,
29896,
29947,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
29911,
347,
694,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
4165,
21642,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29906,
29906,
313,
13,
12,
3563,
497,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29896,
29941,
29947,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
5261,
2523,
800,
322,
12767,
403,
26049,
29908,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
29950,
7889,
27562,
669,
6607,
800,
29908,
1426,
29892,
13,
12,
29908,
7717,
26049,
29908,
1426,
29892,
13,
12,
29908,
29909,
9431,
293,
669,
3014,
26049,
29908,
1426,
29892,
13,
12,
29908,
25865,
26049,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2951,
825,
2462,
471,
278,
14333,
749,
393,
750,
263,
323,
347,
995,
310,
29871,
29946,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
6212,
21642,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29945,
29896,
29947,
29906,
29929,
29918,
29896,
5754,
376,
29911,
347,
694,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
6212,
21642,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29945,
29896,
29947,
29906,
29929,
29918,
29896,
5754,
376,
29911,
347,
694,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`On what day was the attendance that had a Tie value of 40?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12226390_4 (
"No. in season" numeric,
"No. in series" numeric,
Title text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" numeric
);
CREATE TABLE table_1_12030612_9 (
"Original air date" text,
"Series #" numeric,
"Season #" numeric,
"Directed by" text
);
CREATE TABLE table_2_16351829_1 (
"Home team" text,
"Tie no" text,
Score text,
"Away team" text,
Attendance text
);
CREATE TABLE table_1_11803648_22 (
Overall text,
Round numeric,
Player text,
Position text,
Nationality text,
"Club team" text
);
CREATE TABLE table_1_12113818_1 (
"Communications and Corporate Affairs" text,
Year text,
"Human Resources & Operations" text,
"Local Affairs" text,
"Academic & University Affairs" text,
"External Affairs" text
);
```
### Answer
Here is the SQL query that answers the question:
`On what day was the attendance that had a Tie value of 40?`
```sql
| SELECT Attendance FROM table_2_16351829_1 WHERE "Tie no" ILIKE '%40%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3217,
1657,
278,
6588,
1174,
1245,
358,
297,
4966,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29906,
29929,
313,
13,
12,
29908,
797,
13888,
1951,
29908,
16985,
29892,
13,
12,
4920,
1030,
14641,
1426,
29892,
13,
12,
29908,
4504,
1507,
1530,
2470,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
2369,
1467,
358,
16985,
29892,
13,
12,
29908,
12742,
29914,
8431,
20272,
29908,
1426,
29892,
13,
12,
29943,
7261,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
313,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29906,
29946,
29900,
29945,
29918,
29906,
313,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29902,
14851,
6344,
4134,
29908,
1426,
29892,
13,
12,
29924,
6151,
327,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29953,
29955,
29947,
29955,
29918,
29945,
313,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
16382,
342,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
12415,
5946,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29945,
29946,
29906,
29929,
29953,
29918,
29896,
313,
13,
12,
1451,
481,
2153,
16985,
29892,
13,
12,
29965,
4174,
9998,
16985,
29892,
13,
12,
5494,
19252,
1426,
29892,
13,
12,
13404,
1426,
29892,
13,
12,
2385,
2450,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29906,
29945,
29941,
29953,
29918,
29947,
313,
13,
12,
29908,
8003,
297,
1591,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
3217,
1657,
278,
6588,
1174,
1245,
358,
297,
4966,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16884,
29954,
29898,
2369,
1245,
358,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29906,
29946,
29900,
29945,
29918,
29906,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
1251,
412,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`COunt the average Enrollment in hope?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11318462_29 (
"In competition since" numeric,
Abbreviation text,
"School Colours" text,
Location text,
Denomination text,
Enrolment numeric,
"Day/Boarding" text,
Founded numeric
);
CREATE TABLE table_1_10748727_1 (
"F/Laps" numeric,
Season text,
Podiums numeric,
Poles numeric,
Position text,
Points text,
Races numeric,
Series text,
Wins numeric,
"Team Name" text
);
CREATE TABLE table_2_18942405_2 (
County text,
Enrollment numeric,
School text,
Location text,
"IHSAA Class" text,
Mascot text
);
CREATE TABLE table_1_11206787_5 (
Average numeric,
Highest numeric,
Team text,
Stadium text,
Lowest numeric,
Capacity numeric
);
CREATE TABLE table_1_10054296_1 (
Chapters numeric,
UCCFS numeric,
Headquarters text,
Member text,
Classification text
);
CREATE TABLE table_1_10592536_8 (
"Position in table" text,
"Replaced by" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of appointment" text,
"Date of vacancy" text
);
```
### Answer
Here is the SQL query that answers the question:
`COunt the average Enrollment in hope?`
```sql
| SELECT AVG(Enrollment) FROM table_2_18942405_2 WHERE "Location" ILIKE '%hope%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
3815,
471,
278,
3448,
3815,
746,
278,
3271,
3815,
15569,
29871,
29929,
29889,
29896,
29900,
313,
29953,
29946,
6877,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29906,
29946,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
24636,
1706,
7807,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
396,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
399,
4339,
3831,
7261,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
4103,
20889,
362,
29908,
1426,
29892,
13,
12,
29908,
29950,
774,
3973,
1734,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29900,
29947,
29929,
29918,
29945,
313,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29953,
29906,
29896,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29929,
29929,
29955,
29900,
29896,
29918,
29906,
313,
13,
12,
29908,
2385,
319,
23184,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
8905,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
6344,
29909,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
6344,
29908,
1426,
29892,
13,
12,
29908,
2385,
22704,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
3815,
471,
278,
3448,
3815,
746,
278,
3271,
3815,
15569,
29871,
29929,
29889,
29896,
29900,
313,
29953,
29946,
6877,
29952,
13,
28956,
2850,
13,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29900,
29947,
29929,
29918,
29945,
5754,
376,
11184,
3815,
8158,
29908,
306,
5265,
6059,
14210,
29929,
29889,
29896,
29900,
29995,
29898,
29953,
29946,
29897,
29001,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29900,
29947,
29929,
29918,
29945,
5754,
376,
11184,
3815,
8158,
29908,
306,
5265,
6059,
14210,
29929,
29889,
29896,
29900,
29995,
29898,
29953,
29946,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What team was the away team when the home team scored 9.10 (64)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1242447_2 (
"English Spelling" text,
"Strongs #" text,
"Strongs Words Compounded" text,
"Strongs Transliteration" text,
"Hebrew word" text
);
CREATE TABLE table_2_10808089_5 (
"Away team score" text,
"Home team" text,
Date text,
Venue text,
Crowd numeric,
"Away team" text,
"Home team score" text
);
CREATE TABLE table_1_11562143_1 (
"Directed by" text,
"No. in series" numeric,
"Original air date" text,
"Written by" text,
"Featured character(s)" text,
Title text,
"No. in season" numeric,
"U.S. viewers (million)" text
);
CREATE TABLE table_1_10399701_2 (
"Class AAAAA" text,
"School Year" text,
"Class AAAA" text,
"Class AAA" text,
"Class AA" text,
"Class A" text
);
```
### Answer
Here is the SQL query that answers the question:
`What team was the away team when the home team scored 9.10 (64)?`
```sql
| SELECT "Away team" FROM table_2_10808089_5 WHERE "Home team score" ILIKE '%9.10%(64)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
282,
2108,
424,
411,
3384,
1460,
29892,
360,
3774,
442,
265,
408,
278,
12856,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29896,
29941,
29947,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
5261,
2523,
800,
322,
12767,
403,
26049,
29908,
1426,
29892,
13,
12,
29908,
25865,
26049,
29908,
1426,
29892,
13,
12,
29908,
29950,
7889,
27562,
669,
6607,
800,
29908,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
7717,
26049,
29908,
1426,
29892,
13,
12,
29908,
29909,
9431,
293,
669,
3014,
26049,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29947,
29900,
29896,
29947,
29918,
29906,
313,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
1043,
414,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29953,
29953,
29953,
29945,
29918,
29896,
313,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
13799,
2383,
30088,
29908,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
29908,
29928,
575,
537,
24810,
639,
2383,
30088,
29908,
16985,
29892,
13,
12,
13799,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29953,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29945,
313,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29953,
29945,
29947,
29941,
29918,
29906,
313,
13,
12,
29925,
2108,
424,
1426,
29892,
13,
12,
5261,
2333,
287,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
5661,
333,
9943,
29908,
1426,
29892,
13,
12,
17641,
287,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29900,
29953,
29945,
29953,
29918,
29896,
313,
13,
12,
29620,
16985,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
282,
2108,
424,
411,
3384,
1460,
29892,
360,
3774,
442,
265,
408,
278,
12856,
29973,
29952,
13,
28956,
2850,
13,
5097,
349,
2108,
424,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29953,
29945,
29947,
29941,
29918,
29906,
5754,
376,
5627,
29908,
306,
5265,
6059,
14210,
1145,
1460,
24163,
29881,
3774,
442,
265,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
349,
2108,
424,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29953,
29945,
29947,
29941,
29918,
29906,
5754,
376,
5627,
29908,
306,
5265,
6059,
14210,
1145,
1460,
24163,
29881,
3774,
442,
265,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the pennant with Denny, Dumbarton as the builder?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12113818_1 (
"Communications and Corporate Affairs" text,
"External Affairs" text,
"Human Resources & Operations" text,
Year text,
"Local Affairs" text,
"Academic & University Affairs" text
);
CREATE TABLE table_1_12148018_2 (
Episode text,
Viewers text,
Director text,
"#" numeric,
Writer text,
"Original airdate" text
);
CREATE TABLE table_1_1246665_1 (
Population numeric,
County text,
"Area km²" numeric,
Municipality text,
"Density Population per km²" numeric,
Area text,
"unnamed_6" text
);
CREATE TABLE table_1_11677100_5 (
Position text,
School text,
Player text,
Hometown text,
"MLB Draft" text
);
CREATE TABLE table_2_1206583_2 (
Pennant text,
Commissioned text,
Builder text,
Name text,
"Laid Down" text,
Launched text
);
CREATE TABLE table_1_10360656_1 (
Choice numeric,
Overall numeric,
Round numeric,
"Player name" text,
College text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the pennant with Denny, Dumbarton as the builder?`
```sql
| SELECT Pennant FROM table_2_1206583_2 WHERE "Builder" ILIKE '%denny,%dumbarton%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
2186,
2602,
310,
26053,
7142,
943,
4011,
4623,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29955,
29929,
29929,
29918,
29896,
313,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29953,
29941,
29906,
29929,
29918,
29941,
313,
13,
12,
2385,
1426,
29892,
13,
12,
29908,
9135,
1213,
1426,
29892,
13,
12,
29908,
7967,
29899,
29928,
374,
874,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
2385,
10321,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29955,
29955,
29900,
29896,
29918,
29945,
313,
13,
12,
29908,
4205,
29886,
9552,
313,
4912,
30168,
5513,
16985,
29892,
13,
12,
29908,
12412,
775,
29908,
1426,
29892,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
29992,
29878,
3358,
5513,
1426,
29892,
13,
12,
29908,
21472,
313,
567,
5513,
16985,
29892,
13,
12,
29908,
3195,
1024,
29908,
1426,
29892,
13,
12,
20001,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29955,
29945,
29929,
29900,
29918,
29896,
313,
13,
12,
4074,
1441,
29879,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
28958,
1273,
29908,
1426,
29892,
13,
12,
4165,
3456,
29879,
16985,
29892,
13,
12,
15852,
3204,
29879,
16985,
29892,
13,
12,
29908,
29979,
3163,
29914,
4165,
3456,
29908,
1426,
29892,
13,
12,
8909,
29873,
1080,
16985,
29892,
13,
12,
29908,
29954,
1280,
4687,
29908,
16985,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
29979,
3163,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29929,
29941,
29906,
29906,
29896,
29918,
29906,
313,
13,
12,
29968,
24455,
1426,
29892,
13,
12,
29956,
7261,
1426,
29892,
13,
12,
1523,
2037,
1426,
29892,
13,
12,
5261,
3825,
1426,
29892,
13,
12,
8325,
1426,
29892,
13,
12,
18552,
292,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
2186,
2602,
310,
26053,
7142,
943,
4011,
4623,
29973,
29952,
13,
28956,
2850,
13,
5097,
10321,
29889,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29953,
29941,
29906,
29929,
29918,
29941,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
279,
2386,
29995,
14817,
943,
4011,
29995,
14168,
1288,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
10321,
29889,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29953,
29941,
29906,
29929,
29918,
29941,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
279,
2386,
29995,
14817,
943,
4011,
29995,
14168,
1288,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the final position of Arena Motorsports International?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11621799_1 (
"Purse( $ )" numeric,
Winner text,
Location text,
Tournament text,
Date text,
"1st Prize( $ )" numeric,
Score text
);
CREATE TABLE table_2_1226329_3 (
Class text,
"Pos." text,
"Co-Drivers" text,
Team text,
Year numeric,
"Class Pos." text
);
CREATE TABLE table_1_1147701_5 (
"Displacement (cm³)" numeric,
"Engine code" text,
"Torque (Nm@rpm)" text,
"Power (ps)" numeric,
"Model name" text,
Comment text
);
CREATE TABLE table_1_1037590_1 (
Interceptions numeric,
Rating text,
"Completion %" text,
Attempts numeric,
Touchdowns numeric,
"Yards/Attempt" text,
Completions numeric,
"Games started" numeric,
Games numeric,
Yards numeric
);
CREATE TABLE table_1_11793221_2 (
Killed text,
Wounded text,
Complement text,
Commander text,
Unit text,
Missing text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the final position of Arena Motorsports International?`
```sql
| SELECT Pos. FROM table_2_1226329_3 WHERE "Team" ILIKE '%arena%motorsports%international%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
15569,
278,
1556,
15121,
3885,
297,
278,
3748,
2750,
10059,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29896,
313,
13,
12,
17693,
1426,
29892,
13,
12,
29908,
29924,
524,
482,
313,
28116,
5513,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29902,
893,
434,
20743,
313,
28116,
5513,
1426,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
29908,
29924,
524,
482,
313,
7838,
9601,
7542,
2450,
4312,
4514,
29908,
1426,
29892,
13,
12,
29908,
29902,
893,
434,
20743,
313,
7838,
9601,
7542,
2450,
4312,
4514,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29953,
29946,
29955,
29946,
29953,
29918,
29896,
313,
13,
12,
1523,
3283,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
29950,
1709,
4408,
29908,
1426,
29892,
13,
12,
1625,
2470,
1426,
29892,
13,
12,
29908,
22175,
1156,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29900,
29941,
29929,
29953,
29918,
29896,
313,
13,
12,
15666,
557,
1426,
29892,
13,
12,
29908,
18571,
262,
663,
313,
29885,
5513,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
29902,
2929,
362,
313,
8848,
5513,
16985,
29892,
13,
12,
29908,
29923,
2608,
362,
313,
29885,
5513,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
3981,
29891,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29945,
29947,
29953,
29929,
29906,
29900,
29946,
29918,
29929,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
15569,
278,
1556,
15121,
3885,
297,
278,
3748,
2750,
10059,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
16382,
15121,
3885,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29947,
29953,
29929,
29906,
29900,
29946,
29918,
29929,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
1451,
9384,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
16382,
15121,
3885,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29947,
29953,
29929,
29906,
29900,
29946,
29918,
29929,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
1451,
9384,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who scored the most rebounds in the game against Chicago?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11916083_1 (
Theme text,
"Mintage (Proof)" text,
Year numeric,
"Issue Price (Proof)" text,
Artist text,
"Mintage (BU)[ clarification needed ]" text,
"Issue Price (BU)[ clarification needed ]" text
);
CREATE TABLE table_1_11464746_1 (
Composition text,
Founded numeric,
"House Name" text,
Colours text,
"Named after" text
);
CREATE TABLE table_1_12280396_1 (
Peak text,
"Prominence (m)" numeric,
Rank numeric,
"Isolation (km)" numeric,
"Elevation (m)" numeric,
Municipality text,
County text
);
CREATE TABLE table_1_15869204_9 (
Date text,
"High rebounds" text,
Score text,
"High assists" text,
"Location Attendance" text,
Game numeric,
"High points" text,
Record text,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`Who scored the most rebounds in the game against Chicago?`
```sql
| SELECT "High rebounds" FROM table_1_15869204_9 WHERE "Team" ILIKE '%Chicago%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3694,
310,
278,
266,
29876,
5190,
411,
263,
3081,
7621,
1135,
29871,
29906,
29906,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29955,
29929,
29953,
29900,
29918,
29941,
313,
13,
12,
29908,
12883,
4240,
29908,
16985,
29892,
13,
12,
29908,
21472,
313,
2015,
344,
13519,
5513,
16985,
29892,
13,
12,
29908,
7976,
24839,
313,
8848,
29914,
29882,
5513,
16985,
29892,
13,
12,
29908,
22930,
537,
4240,
29908,
1426,
29892,
13,
12,
29478,
1426,
29892,
13,
12,
1542,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29946,
29946,
29941,
29900,
29906,
29918,
29896,
313,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29899,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
2481,
21497,
313,
29923,
1254,
5513,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
3563,
497,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29955,
29946,
29945,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
26036,
3611,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
29908,
12883,
518,
29872,
4514,
313,
29907,
14992,
2592,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29953,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3694,
310,
278,
266,
29876,
5190,
411,
263,
3081,
7621,
1135,
29871,
29906,
29906,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
11848,
2596,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29955,
29929,
29953,
29900,
29918,
29941,
5754,
376,
21472,
313,
2015,
344,
13519,
5513,
1405,
525,
29906,
29906,
29900,
29915,
5300,
376,
1542,
29908,
306,
5265,
6059,
14210,
386,
29876,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
11848,
2596,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29955,
29929,
29953,
29900,
29918,
29941,
5754,
376,
21472,
313,
2015,
344,
13519,
5513,
1405,
525,
29906,
29906,
29900,
29915,
5300,
376,
1542,
29908,
306,
5265,
6059,
14210,
386,
29876,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the numbers of the thn unit with a power greater than 220?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1527960_3 (
"Year built" numeric,
"Power (horsepower)" numeric,
"Max Speed (km/h)" numeric,
"Quantity built" text,
Numbers text,
Type text
);
CREATE TABLE table_1_11244302_1 (
Share numeric,
Rating text,
"Viewers (m)" text,
"Air Date" text,
"18-49 (Rating/Share)" text,
"#" numeric,
"Time slot (EST)" text,
Episode text,
"Rank (Overall)" text
);
CREATE TABLE table_1_10874596_1 (
"Original title" text,
Director text,
Result text,
"Film title used in nomination" text,
"Year [e ] (Ceremony)" text
);
CREATE TABLE table_1_11677100_16 (
School text,
Hometown text,
"MLB Draft" text,
Position text,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the numbers of the thn unit with a power greater than 220?`
```sql
| SELECT Numbers FROM table_2_1527960_3 WHERE "Power (horsepower)" > '220' AND "Type" ILIKE '%thn%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
5839,
1353,
297,
4513,
29871,
29906,
29906,
29947,
363,
12828,
14601,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29906,
29900,
29955,
29941,
29946,
29918,
29896,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29947,
29945,
29941,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
1256,
310,
4892,
30087,
29908,
1426,
29892,
13,
12,
29908,
4537,
310,
26091,
29908,
16985,
29892,
13,
12,
29908,
1256,
310,
12060,
29908,
1426,
29892,
13,
12,
4537,
16985,
29892,
13,
12,
978,
1426,
29892,
13,
12,
29908,
1256,
310,
9512,
29908,
1426,
29892,
13,
12,
29908,
4537,
310,
14433,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29941,
29945,
29953,
29918,
29941,
313,
13,
12,
20097,
1426,
29892,
13,
12,
7439,
1089,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
3744,
2763,
1426,
29892,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29949,
407,
265,
1237,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29906,
29945,
29953,
29906,
29929,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
29934,
299,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
29892,
13,
12,
29908,
16885,
29914,
6508,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
5839,
1353,
297,
4513,
29871,
29906,
29906,
29947,
363,
12828,
14601,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29925,
860,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29906,
29900,
29955,
29941,
29946,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
2460,
446,
29995,
4006,
29001,
5300,
376,
29934,
618,
29908,
1405,
525,
29906,
29906,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
29898,
29925,
860,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29946,
29906,
29900,
29955,
29941,
29946,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
2460,
446,
29995,
4006,
29001,
5300,
376,
29934,
618,
29908,
1405,
525,
29906,
29906,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the pick number in round 228 for Mike Ford?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_11420734_1 (
School text,
Position text,
Pick numeric,
Player text,
Round numeric
);
CREATE TABLE table_1_11585313_1 (
"date of death†" text,
"number of caps" numeric,
"date of birth" text,
number numeric,
name text,
"date of debut" text,
"number of goals" numeric
);
CREATE TABLE table_1_1028356_3 (
Score text,
Partner text,
Surface text,
Outcome text,
Championship text,
Year numeric,
Opponents text
);
CREATE TABLE table_1_10725629_2 (
"Fastest lap" text,
Rnd text,
Circuit text,
Report text,
"Pole position" text,
"City/Location" text,
"Winning driver" text,
Date text,
"Winning team" text,
"Race Name" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the pick number in round 228 for Mike Ford?`
```sql
| SELECT MAX(Pick) FROM table_2_11420734_1 WHERE "Player" ILIKE '%mike%ford%' AND "Round" > '228' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
3461,
756,
263,
8158,
310,
29871,
29900,
29899,
29900,
411,
16198,
7992,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29941,
29900,
29953,
29955,
29896,
29918,
29896,
313,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29907,
798,
29881,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29896,
29896,
29945,
29947,
29918,
29941,
313,
13,
12,
29908,
29907,
8842,
1754,
20605,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
29908,
25353,
8341,
29908,
1426,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29879,
29908,
16985,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
7115,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29955,
29945,
29945,
29945,
29896,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29941,
29945,
29918,
29896,
313,
13,
12,
29908,
7583,
4234,
310,
4423,
29908,
1426,
29892,
13,
12,
29908,
12787,
326,
630,
4892,
29879,
29908,
1426,
29892,
13,
12,
29908,
22034,
786,
1000,
20123,
29908,
1426,
29892,
13,
12,
29907,
1160,
1426,
29892,
13,
12,
29908,
26666,
2794,
363,
4158,
12088,
886,
29908,
1426,
29892,
13,
12,
7094,
1288,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29946,
29929,
29953,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
3461,
756,
263,
8158,
310,
29871,
29900,
29899,
29900,
411,
16198,
7992,
29973,
29952,
13,
28956,
2850,
13,
5097,
13969,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29941,
29900,
29953,
29955,
29896,
29918,
29896,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29900,
29899,
29900,
29001,
5300,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
29879,
2941,
3801,
29995,
13801,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
13969,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29941,
29900,
29953,
29955,
29896,
29918,
29896,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29900,
29899,
29900,
29001,
5300,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
29879,
2941,
3801,
29995,
13801,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What report has a score of 0-0 with Sydney FC?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_13830671_1 (
Venue text,
"Home team" text,
"Away team" text,
Date text,
Crowd text,
Score text,
Report text
);
CREATE TABLE table_1_10021158_3 (
"Cuts made*" numeric,
"Scoring average" text,
"Best finish" text,
"Money list rank" text,
Wins numeric,
"2nd" numeric,
"Top 10s" numeric,
"Earnings ($)" numeric,
"Tournaments played" numeric,
Year numeric,
"Scoring rank" text
);
CREATE TABLE table_1_12275551_1 (
"Mens singles" text,
"Mixed doubles" text,
"Womens singles" text,
"Womens doubles" text,
"Mens doubles" text
);
CREATE TABLE table_1_10335_1 (
"Current country of location" text,
"Estimated deaths" text,
"Occupied territory" text,
Camp text,
"Primary means for mass killings" text,
Operational text
);
CREATE TABLE table_1_11622496_1 (
Tournament text,
"1st Prize( $ )" text,
Location text,
Winner text,
"Purse( $ )" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What report has a score of 0-0 with Sydney FC?`
```sql
| SELECT Report FROM table_2_13830671_1 WHERE "Score" ILIKE '%0-0%' AND "Away team" ILIKE '%sydney%fc%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
12208,
14866,
7889,
29915,
29879,
1763,
610,
746,
670,
3001,
471,
7968,
1135,
29871,
29906,
29947,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29947,
29945,
29955,
29906,
29918,
29896,
313,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
7525,
1089,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
6536,
7525,
1089,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
6536,
399,
3993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29955,
313,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29947,
29900,
29896,
29955,
29945,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
7083,
25709,
1426,
29892,
13,
12,
29963,
14797,
25874,
4096,
1426,
29892,
13,
12,
29908,
8139,
29884,
29899,
29963,
14797,
25874,
4096,
29908,
16985,
29892,
13,
12,
29923,
436,
303,
29986,
6008,
16985,
29892,
13,
12,
4504,
29893,
1647,
1426,
29892,
13,
12,
29933,
9618,
29920,
340,
1426,
29892,
13,
12,
29933,
1215,
5842,
25855,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29906,
29947,
29896,
29946,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
12881,
728,
1426,
29892,
13,
12,
29908,
12883,
29898,
29879,
29897,
2113,
29908,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
12208,
14866,
7889,
29915,
29879,
1763,
610,
746,
670,
3001,
471,
7968,
1135,
29871,
29906,
29947,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29906,
29947,
29896,
29946,
29918,
29896,
5754,
376,
11536,
29908,
529,
525,
29906,
29947,
29946,
29915,
5300,
376,
9075,
29908,
306,
5265,
6059,
14210,
1324,
600,
29995,
2536,
7889,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29906,
29947,
29896,
29946,
29918,
29896,
5754,
376,
11536,
29908,
529,
525,
29906,
29947,
29946,
29915,
5300,
376,
9075,
29908,
306,
5265,
6059,
14210,
1324,
600,
29995,
2536,
7889,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was Jeff Sluman's To par when his total was smaller than 284?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11148572_1 (
Season numeric,
"MLS Supporters Shield Runner-Up" text,
"MLS Supporters Shield Winner" text,
"MLS Cup Runner-Up" text,
"MLS Cup Winner" text
);
CREATE TABLE table_1_11677100_17 (
"MLB Draft" text,
Position text,
School text,
Hometown text
);
CREATE TABLE table_1_11680175_1 (
Year numeric,
Marwitz text,
Vehlefanz text,
"Neu-Vehlefanz" numeric,
Eichstädt numeric,
Schwante text,
Bötzow text,
Bärenklau text
);
CREATE TABLE table_2_18112814_1 (
Player text,
"To par" text,
Total numeric,
Finish text,
"Year(s) won" text,
Country text
);
```
### Answer
Here is the SQL query that answers the question:
`What was Jeff Sluman's To par when his total was smaller than 284?`
```sql
| SELECT "To par" FROM table_2_18112814_1 WHERE "Total" < '284' AND "Player" ILIKE '%jeff%sluman%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1568,
7684,
947,
278,
23735,
505,
393,
756,
29871,
29941,
13283,
322,
901,
1135,
29871,
29941,
18449,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29953,
29941,
29955,
29896,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29911,
29906,
29900,
7087,
29908,
16985,
29892,
13,
12,
29908,
8610,
7087,
29908,
16985,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
1170,
310,
5962,
29908,
1426,
29892,
13,
12,
29908,
4375,
7087,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29941,
29947,
29946,
29953,
29945,
29918,
29906,
313,
13,
12,
29933,
1617,
911,
16985,
29892,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
26729,
369,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
11536,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1568,
7684,
947,
278,
23735,
505,
393,
756,
29871,
29941,
13283,
322,
901,
1135,
29871,
29941,
18449,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29954,
1025,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29941,
29947,
29946,
29953,
29945,
29918,
29906,
5754,
376,
26729,
369,
29908,
353,
525,
29941,
29915,
5300,
376,
29933,
1617,
911,
29908,
1405,
525,
29941,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
29898,
29954,
1025,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29941,
29947,
29946,
29953,
29945,
29918,
29906,
5754,
376,
26729,
369,
29908,
353,
525,
29941,
29915,
5300,
376,
29933,
1617,
911,
29908,
1405,
525,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How much gold does the tank have that has 3 silver and more than 3 bronze?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11391954_3 (
"Half Marathon (mens)" numeric,
"Marathon (mens)" numeric,
"Marathon (womens)" numeric,
Country text,
"Half Marathon (womens)" numeric
);
CREATE TABLE table_1_1176371_1 (
Location text,
"T20 matches" numeric,
"FC matches" numeric,
Year text,
"Name of ground" text,
"LA matches" numeric
);
CREATE TABLE table_2_17838465_2 (
Bronze numeric,
Gold numeric,
Silver numeric,
Rank numeric,
Total numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How much gold does the tank have that has 3 silver and more than 3 bronze?`
```sql
| SELECT COUNT(Gold) FROM table_2_17838465_2 WHERE "Silver" = '3' AND "Bronze" > '3' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1762,
607,
6263,
947,
4755,
399,
29889,
2155,
5397,
6852,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29929,
29900,
29947,
29955,
29918,
29896,
313,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
262,
14746,
5513,
1426,
29892,
13,
12,
29934,
804,
292,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29896,
29946,
29906,
29896,
29906,
29918,
29896,
313,
13,
12,
29908,
29940,
4680,
310,
435,
3304,
16708,
16896,
4908,
18363,
4034,
29908,
16985,
29892,
13,
12,
29908,
4597,
8306,
491,
916,
2794,
29908,
16985,
29892,
13,
12,
29908,
4597,
8306,
310,
263,
9461,
2278,
29908,
16985,
29892,
13,
12,
29908,
29940,
18771,
4371,
491,
25488,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29940,
18771,
4371,
491,
13718,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29945,
29929,
29947,
29918,
29941,
29929,
313,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29945,
29906,
29947,
29941,
29900,
29918,
29906,
313,
13,
12,
9182,
1426,
29892,
13,
12,
8050,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
22606,
1426,
29892,
13,
12,
29908,
29968,
860,
2696,
518,
29874,
4514,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1762,
607,
6263,
947,
4755,
399,
29889,
2155,
5397,
6852,
29973,
29952,
13,
28956,
2850,
13,
5097,
9173,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29945,
29929,
29947,
29918,
29941,
29929,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
9173,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29945,
29929,
29947,
29918,
29941,
29929,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,
14210,
9588,
2151,
29995,
29956,
29889,
29995,
3853,
5397,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`To which party does Robert W. Edgar belong?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1009087_1 (
"TV season" text,
Network text,
"Viewers (in millions)" text,
Ranking text,
"Season premiere" text,
Season text,
"Season finale" text
);
CREATE TABLE table_1_11214212_1 (
"Numer of Jamaicans granted British citizenship" numeric,
"Registration by other means" numeric,
"Registration of a minor child" numeric,
"Naturalisation by residence" numeric,
Year numeric,
"Naturalisation by marriage" numeric
);
CREATE TABLE table_1_1341598_39 (
Incumbent text,
Candidates text,
Result text,
Party text,
District text,
"First elected" numeric
);
CREATE TABLE table_1_11452830_2 (
Record text,
TV text,
Date text,
Attendance text,
"Game site" text,
Opponent text,
Week text,
"Kickoff [a ]" text
);
```
### Answer
Here is the SQL query that answers the question:
`To which party does Robert W. Edgar belong?`
```sql
| SELECT Party FROM table_1_1341598_39 WHERE "Incumbent" ILIKE '%Robert%W.%Edgar%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
1158,
750,
263,
931,
310,
29871,
29900,
29901,
29946,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29946,
29945,
29900,
29941,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
28877,
29899,
786,
29908,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
19576,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29946,
29906,
29946,
29955,
29947,
29918,
29906,
313,
13,
12,
29908,
1666,
1213,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4062,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2624,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29941,
29955,
29947,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
29908,
10873,
793,
29314,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
29314,
29908,
1426,
29892,
13,
12,
18498,
2161,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
1158,
750,
263,
931,
310,
29871,
29900,
29901,
29946,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
2544,
8187,
29928,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29946,
29906,
29946,
29955,
29947,
29918,
29906,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
29900,
29901,
29946,
29953,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
341,
2544,
8187,
29928,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29946,
29906,
29946,
29955,
29947,
29918,
29906,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
29900,
29901,
29946,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which method had a time of 0:46?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12444503_1 (
Season text,
"Runner-up" text,
Winner text,
Score text,
"lost to eventual runner-up" text,
"lost to eventual winner" text
);
CREATE TABLE table_2_17442478_2 (
"Res." text,
Time text,
Opponent text,
Method text,
Round numeric,
Record text,
Location text,
Event text
);
CREATE TABLE table_1_11900378_1 (
Tournament text,
Country text,
City text,
"Singles champions" text,
Date text,
"Doubles champions" text,
Surface text
);
```
### Answer
Here is the SQL query that answers the question:
`Which method had a time of 0:46?`
```sql
| SELECT METHOD FROM table_2_17442478_2 WHERE "Time" ILIKE '%0:46%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
8158,
310,
263,
3815,
411,
22134,
310,
29871,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29906,
313,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29953,
29955,
29945,
29918,
29896,
313,
13,
12,
20622,
1426,
29892,
13,
12,
1451,
8233,
1426,
29892,
13,
12,
4300,
18411,
1426,
29892,
13,
12,
29925,
4901,
262,
1426,
29892,
13,
12,
1451,
3314,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29941,
313,
13,
12,
29908,
1542,
310,
1383,
666,
29908,
1426,
29892,
13,
12,
29908,
2539,
7802,
2669,
29908,
1426,
29892,
13,
12,
29911,
3409,
482,
16985,
29892,
13,
12,
29908,
2539,
411,
19811,
1233,
29908,
1426,
29892,
13,
12,
29908,
2713,
4512,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29906,
29906,
29906,
29955,
29946,
29918,
29955,
313,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29911,
347,
694,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
338,
8158,
310,
263,
3815,
411,
22134,
310,
29871,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29906,
29906,
29906,
29955,
29946,
29918,
29955,
5754,
376,
29911,
347,
694,
29908,
306,
5265,
6059,
14210,
29946,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29906,
29906,
29906,
29906,
29955,
29946,
29918,
29955,
5754,
376,
29911,
347,
694,
29908,
306,
5265,
6059,
14210,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is score of a team with tie of 4?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12303563_2 (
"3rd Place" numeric,
Nation text,
"Runners-up" numeric,
Winners numeric,
"#" numeric,
"4th Place" numeric
);
CREATE TABLE table_1_1216675_1 (
Subject text,
Chinese text,
Translation text,
Pinyin text,
Chapter numeric
);
CREATE TABLE table_1_11662133_3 (
"Type of Ship" text,
"Date entered service" text,
Tonnage numeric,
"Date withdrawn" text,
"Ships name" text
);
CREATE TABLE table_2_16222274_7 (
Attendance text,
"Home team" text,
"Away team" text,
Score text,
"Tie no" text
);
```
### Answer
Here is the SQL query that answers the question:
`what is score of a team with tie of 4?`
```sql
| SELECT Score FROM table_2_16222274_7 WHERE "Tie no" ILIKE '%4%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29896,
303,
2814,
310,
3815,
29871,
29896,
22105,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29906,
29896,
29941,
29900,
29929,
29918,
29896,
313,
13,
12,
29908,
3217,
29871,
29906,
448,
331,
2333,
29908,
1426,
29892,
13,
12,
12415,
2028,
1426,
29892,
13,
12,
29908,
18213,
29889,
5864,
29908,
16985,
29892,
13,
12,
23665,
428,
16985,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
13,
12,
29923,
781,
2200,
537,
16985,
29892,
13,
12,
26382,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29900,
29946,
29955,
29896,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29906,
29896,
29906,
29900,
29947,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29941,
29900,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29896,
29953,
29900,
29896,
29918,
29906,
313,
13,
12,
29908,
12810,
29887,
29889,
25477,
639,
2383,
29871,
29906,
310,
967,
2982,
313,
7453,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
27933,
482,
310,
5534,
3001,
29908,
1426,
29892,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29896,
29900,
29871,
29953,
323,
787,
29897,
313,
29906,
29900,
29900,
29953,
5513,
16985,
29892,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29911,
787,
639,
2022,
29897,
313,
29906,
29900,
29900,
29955,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29955,
29929,
29929,
29929,
29955,
29918,
29941,
313,
13,
12,
29908,
29896,
303,
2814,
29908,
1426,
29892,
13,
12,
29908,
19409,
29871,
29896,
29908,
1426,
29892,
13,
12,
29908,
19409,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
29909,
1505,
1213,
1426,
29892,
13,
12,
29908,
29906,
299,
2814,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29896,
303,
2814,
310,
3815,
29871,
29896,
22105,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29896,
303,
2814,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29955,
29929,
29929,
29929,
29955,
29918,
29941,
5754,
376,
19409,
29871,
29896,
29908,
306,
5265,
6059,
14210,
368,
265,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
29896,
303,
2814,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29955,
29929,
29929,
29929,
29955,
29918,
29941,
5754,
376,
19409,
29871,
29896,
29908,
306,
5265,
6059,
14210,
368,
265,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the 1st leg of team 1 Lyon?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10921309_1 (
"CO 2 -emission" text,
Capita text,
"Prim. energy" numeric,
Production numeric,
"unnamed_0" numeric,
Electricity numeric,
Export numeric
);
CREATE TABLE table_1_12204717_1 (
"Mixed doubles" text,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
Year numeric,
"Womens doubles" text
);
CREATE TABLE table_1_12121208_1 (
"Mixed doubles" text,
"Mens doubles" text,
"Mens singles" text
);
CREATE TABLE table_1_12033013_1 (
"Production code" text,
Title text,
"Directed by" text,
"Written by" text,
"No. in series" numeric,
"Original air date" text
);
CREATE TABLE table_1_11251601_2 (
"Avg. emission per km 2 of its land (tons)" numeric,
Country text,
"Percentage of global total" text,
"Carbon dioxide emissions per year (10 6 Tons) (2006)" numeric,
"Carbon dioxide emissions per year (Tons per person) (2007)" text
);
CREATE TABLE table_2_14679997_3 (
"1st leg" text,
"Team 1" text,
"Team 2" text,
"Agg." text,
"2nd leg" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the 1st leg of team 1 Lyon?`
```sql
| SELECT "1st leg" FROM table_2_14679997_3 WHERE "Team 1" ILIKE '%lyon%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1024,
310,
278,
3271,
10728,
1974,
310,
1771,
275,
29890,
1662,
365,
1080,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29946,
29896,
29955,
29929,
29918,
29906,
313,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
17734,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29941,
29918,
29906,
313,
13,
12,
29934,
815,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29955,
29906,
29896,
29945,
29918,
29941,
313,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29934,
29881,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29947,
29947,
29946,
29955,
29947,
29918,
29941,
313,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
3338,
618,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29955,
29955,
29900,
29945,
29918,
29896,
313,
13,
12,
29908,
3317,
29889,
3184,
573,
3081,
29908,
1426,
29892,
13,
12,
29908,
10599,
5285,
669,
11486,
29871,
29900,
29899,
29896,
29900,
29900,
8848,
29914,
29882,
29908,
1426,
29892,
13,
12,
29908,
10599,
1134,
29908,
1426,
29892,
13,
12,
29908,
3317,
29889,
4842,
802,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
29908,
10599,
12272,
9552,
29908,
1426,
29892,
13,
12,
4299,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29953,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1024,
310,
278,
3271,
10728,
1974,
310,
1771,
275,
29890,
1662,
365,
1080,
29973,
29952,
13,
28956,
2850,
13,
5097,
1632,
618,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29947,
29947,
29946,
29955,
29947,
29918,
29941,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
1182,
275,
29890,
1662,
29995,
29880,
1080,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
1632,
618,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29947,
29947,
29946,
29955,
29947,
29918,
29941,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
1182,
275,
29890,
1662,
29995,
29880,
1080,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the name of the home stadium of Brisbane Lions?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10264179_2 (
Circuit text,
"Winning Team" text,
"Winning Driver" text,
"Pole Position" text,
"Fastest Lap" text,
Round numeric
);
CREATE TABLE table_1_1140073_2 (
Race text,
Report text,
"Race Winner" text,
Constructor text,
Location text,
"Fastest Lap" text,
Rnd numeric
);
CREATE TABLE table_1_10527215_3 (
"Winning team" text,
Name text,
"Fastest Lap" text,
"Winning driver" text,
Rd numeric
);
CREATE TABLE table_2_16388478_3 (
"Home team score" text,
Date text,
Ground text,
Crowd numeric,
"Away team" text,
"Away team score" text,
"Home team" text
);
CREATE TABLE table_1_1147705_1 (
"max. motive power" text,
"engine configuration & notes 0-100km/h" text,
"engine type" text,
"max. torque at rpm" text,
"engine displacement" text,
model text
);
CREATE TABLE table_1_11545282_6 (
"No." numeric,
"School/Club Team" text,
"Years for Jazz" text,
Nationality text,
Position text,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the name of the home stadium of Brisbane Lions?`
```sql
| SELECT Ground FROM table_2_16388478_3 WHERE "Home team" ILIKE '%brisbane%lions%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1018,
28920,
746,
278,
6410,
338,
29871,
29896,
29941,
322,
278,
4216,
338,
29871,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29955,
29945,
29953,
29955,
29945,
29918,
29906,
313,
13,
12,
13454,
287,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
29911,
2722,
363,
29908,
1426,
29892,
13,
12,
29908,
20325,
2750,
29908,
1426,
29892,
13,
12,
29908,
20325,
363,
29908,
1426,
29892,
13,
12,
29908,
15870,
28920,
29908,
1426,
29892,
13,
12,
29908,
29911,
2722,
2750,
29908,
1426,
29892,
13,
12,
29931,
520,
1426,
29892,
13,
12,
24515,
1233,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29896,
29955,
29896,
29946,
29918,
29906,
313,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
27276,
1426,
29892,
13,
12,
29908,
3492,
865,
364,
1241,
12965,
29908,
1426,
29892,
13,
12,
29908,
27648,
2708,
12965,
29908,
1426,
29892,
13,
12,
29908,
20325,
12965,
29908,
1426,
29892,
13,
12,
29908,
4074,
3146,
307,
12965,
29908,
1426,
29892,
13,
12,
29908,
29911,
307,
1725,
29877,
23786,
8583,
29908,
1426,
29892,
13,
12,
29908,
15263,
12965,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29941,
29918,
29906,
313,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29945,
29906,
29955,
29945,
29896,
29918,
29906,
313,
13,
12,
29908,
6508,
313,
12690,
29892,
2106,
5513,
1426,
29892,
13,
12,
29908,
29979,
538,
4408,
29908,
1426,
29892,
13,
12,
29908,
2713,
666,
28025,
5556,
2147,
287,
29908,
1426,
29892,
13,
12,
29908,
11536,
9681,
310,
399,
1036,
29908,
1426,
29892,
13,
12,
29908,
7827,
24479,
4240,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
1383,
666,
360,
27657,
4712,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29906,
313,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1018,
28920,
746,
278,
6410,
338,
29871,
29896,
29941,
322,
278,
4216,
338,
29871,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
15870,
28920,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29955,
29945,
29953,
29955,
29945,
29918,
29906,
5754,
376,
29931,
520,
29908,
306,
5265,
6059,
14210,
29896,
29941,
29001,
5300,
376,
24515,
1233,
29908,
306,
5265,
6059,
14210,
29906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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
15870,
28920,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29955,
29945,
29953,
29955,
29945,
29918,
29906,
5754,
376,
29931,
520,
29908,
306,
5265,
6059,
14210,
29896,
29941,
29001,
5300,
376,
24515,
1233,
29908,
306,
5265,
6059,
14210,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the try bonus when the loss is 13 and the draw is 2?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17675675_2 (
Played text,
Club text,
"Tries for" text,
"Points against" text,
"Points for" text,
"Try bonus" text,
"Tries against" text,
Lost text,
Drawn text
);
CREATE TABLE table_1_12261714_2 (
Winner text,
Stage text,
"Young rider classification" text,
"Mountains classification" text,
"Points classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text,
"General classification" text
);
CREATE TABLE table_1_1140083_2 (
Race text,
Rnd numeric,
"Race Winner" text,
"Fastest Lap" text,
"Pole Position" text,
Report text,
Constructor text,
Location text,
Date text
);
CREATE TABLE table_1_11552751_2 (
"Location (city, state)" text,
"Yard Name" text,
"Ship Types Delivered" text,
"Total Number of Ways" text,
"total vessels built" text,
"1st Ship Delivery Date" text
);
CREATE TABLE table_1_12303563_2 (
Nation text,
"#" numeric,
"Runners-up" numeric,
"3rd Place" numeric,
"4th Place" numeric,
Winners numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the try bonus when the loss is 13 and the draw is 2?`
```sql
| SELECT "Try bonus" FROM table_2_17675675_2 WHERE "Lost" ILIKE '%13%' AND "Drawn" ILIKE '%2%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
2305,
508,
367,
409,
630,
373,
278,
15780,
393,
471,
9129,
297,
29871,
29906,
29900,
29900,
29947,
322,
756,
11486,
310,
297,
2669,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29946,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29941,
29947,
29955,
29953,
29955,
29918,
29896,
313,
13,
12,
855,
23693,
1426,
29892,
13,
12,
29908,
18457,
29914,
20779,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
29928,
1078,
263,
2859,
29908,
1426,
29892,
13,
12,
29908,
7717,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29946,
29953,
29953,
29918,
29946,
313,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29909,
12664,
1426,
29892,
13,
12,
8015,
2859,
1426,
29892,
13,
12,
2008,
1218,
1426,
29892,
13,
12,
2928,
3518,
1133,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29896,
29896,
313,
13,
12,
19204,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
2305,
508,
367,
409,
630,
373,
278,
15780,
393,
471,
9129,
297,
29871,
29906,
29900,
29900,
29947,
322,
756,
11486,
310,
297,
2669,
29973,
29952,
13,
28956,
2850,
13,
5097,
922,
1218,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29946,
29953,
29953,
29918,
29946,
5754,
376,
3664,
267,
29908,
306,
5265,
6059,
14210,
262,
29995,
5509,
29001,
5300,
376,
2928,
3518,
1133,
29908,
353,
525,
29906,
29900,
29900,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
922,
1218,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29946,
29953,
29953,
29918,
29946,
5754,
376,
3664,
267,
29908,
306,
5265,
6059,
14210,
262,
29995,
5509,
29001,
5300,
376,
2928,
3518,
1133,
29908,
353,
525,
29906,
29900,
29900,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11960944_4 (
"Location Attendance" text,
Game numeric,
"High points" text,
Date text,
"High rebounds" text,
"High assists" text,
Team text,
Record text,
Score text
);
CREATE TABLE table_1_12438767_1 (
Starring text,
"Region/Country" text,
Network text,
"Dates aired" text,
"Local name" text
);
CREATE TABLE table_2_180466_4 (
Notes text,
Aircraft text,
Retired text,
Seating text,
Introduced numeric
);
CREATE TABLE table_1_11960944_11 (
Series text,
Date text,
"High rebounds" text,
"Location Attendance" text,
Score text
);
```
### Answer
Here is the SQL query that answers the question:
`How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service?`
```sql
| SELECT Seating FROM table_2_180466_4 WHERE "Notes" ILIKE '%in%service%' AND "Introduced" = '2008' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
750,
278,
5172,
342,
23012,
746,
594,
314,
25542,
397,
5059,
283,
471,
278,
15613,
7156,
322,
750,
278,
22775,
2602,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29947,
29945,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
1988,
29903,
6536,
7525,
1089,
29899,
3373,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
1988,
29903,
6536,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
7525,
1089,
29899,
3373,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29946,
29896,
29945,
29953,
29918,
29896,
313,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
29931,
14556,
5166,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
17734,
1076,
5166,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29925,
374,
911,
341,
4992,
29908,
1426,
29892,
13,
12,
2369,
509,
1934,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29947,
29896,
29947,
29947,
29946,
29918,
29941,
313,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29953,
29900,
29906,
29896,
29918,
29896,
313,
13,
12,
29908,
2928,
307,
1765,
287,
29892,
6376,
800,
4034,
11678,
14927,
29908,
1426,
29892,
13,
12,
2111,
261,
403,
1426,
29892,
13,
12,
29908,
5647,
307,
3259,
317,
1052,
267,
29908,
1426,
29892,
13,
12,
29908,
15666,
1991,
29899,
7662,
19843,
6287,
29908,
1426,
29892,
13,
12,
9692,
261,
1426,
29892,
13,
12,
29908,
5647,
307,
1765,
287,
29892,
6376,
800,
4034,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
29908,
2928,
307,
1765,
287,
29892,
9330,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
29908,
5647,
307,
1765,
287,
29892,
9330,
29899,
15988,
14927,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
750,
278,
5172,
342,
23012,
746,
594,
314,
25542,
397,
5059,
283,
471,
278,
15613,
7156,
322,
750,
278,
22775,
2602,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29943,
579,
342,
20298,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29947,
29896,
29947,
29947,
29946,
29918,
29941,
5754,
376,
17734,
1076,
7156,
29908,
306,
5265,
6059,
14210,
328,
314,
29995,
305,
2021,
397,
5059,
283,
29001,
5300,
376,
29925,
1772,
20627,
29908,
306,
5265,
6059,
14210,
328,
314,
29995,
305,
2021,
397,
5059,
283,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29943,
579,
342,
20298,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29947,
29896,
29947,
29947,
29946,
29918,
29941,
5754,
376,
17734,
1076,
7156,
29908,
306,
5265,
6059,
14210,
328,
314,
29995,
305,
2021,
397,
5059,
283,
29001,
5300,
376,
29925,
1772,
20627,
29908,
306,
5265,
6059,
14210,
328,
314,
29995,
305,
2021,
397,
5059,
283,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11148572_1 (
"MLS Cup Runner-Up" text,
Season numeric,
"MLS Cup Winner" text,
"MLS Supporters Shield Winner" text,
"MLS Supporters Shield Runner-Up" text
);
CREATE TABLE table_1_12454156_1 (
"Runner-Up" text,
"Losing Hand" text,
Winner text,
"Winning Hand" text,
Year numeric,
"Prize Money" text,
Entrants numeric
);
CREATE TABLE table_2_18381884_3 (
"Winning team" text,
"Pole Position" text,
Circuit text,
Date text,
"Fastest Lap" text,
"Winning driver" text
);
CREATE TABLE table_1_11256021_1 (
"Introverted, Relationship Oriented" text,
Moderate text,
"Extroversion Scales" text,
"People-task orientation scale" text,
Founder text,
"Extroverted, Relationship-Oriented" text,
"Introverted, Task-Oriented" text,
"Extroverted, Task-Oriented" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?`
```sql
| SELECT "Fastest Lap" FROM table_2_18381884_3 WHERE "Winning driver" ILIKE '%adam%christodoulou%' AND "Pole Position" ILIKE '%adam%christodoulou%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
363,
10151,
1179,
526,
727,
746,
278,
2750,
19649,
338,
29871,
29941,
29945,
29892,
29955,
29947,
29906,
313,
29953,
29929,
6877,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29929,
29947,
29929,
29906,
29947,
29918,
29896,
313,
13,
12,
29908,
26036,
3611,
29908,
1426,
29892,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29947,
29929,
29955,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
2831,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
14769,
475,
303,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29879,
24674,
2782,
11719,
29908,
16985,
29892,
13,
12,
12075,
1981,
3819,
1426,
29892,
13,
12,
29923,
781,
272,
403,
16985,
29892,
13,
12,
29908,
11536,
21180,
313,
29995,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29929,
29941,
29953,
29955,
29918,
29941,
313,
13,
12,
29908,
3057,
29899,
29873,
5790,
29908,
1426,
29892,
13,
12,
29908,
7129,
287,
3026,
1426,
29892,
13,
12,
1451,
11768,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29896,
29946,
313,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29906,
29947,
29945,
29946,
29941,
29918,
29941,
313,
13,
12,
29931,
14556,
19409,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
6212,
21642,
29908,
16985,
29892,
13,
12,
17734,
1076,
19409,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
2539,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29953,
29900,
29906,
29896,
29918,
29896,
313,
13,
12,
29908,
5647,
307,
1765,
287,
29892,
6376,
800,
4034,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
5647,
307,
3259,
317,
1052,
267,
29908,
1426,
29892,
13,
12,
2111,
261,
403,
1426,
29892,
13,
12,
29908,
2928,
307,
1765,
287,
29892,
9330,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
9692,
261,
1426,
29892,
13,
12,
29908,
5647,
307,
1765,
287,
29892,
9330,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
29908,
15666,
1991,
29899,
7662,
19843,
6287,
29908,
1426,
29892,
13,
12,
29908,
2928,
307,
1765,
287,
29892,
6376,
800,
4034,
11678,
14927,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
363,
10151,
1179,
526,
727,
746,
278,
2750,
19649,
338,
29871,
29941,
29945,
29892,
29955,
29947,
29906,
313,
29953,
29929,
6877,
29952,
13,
28956,
2850,
13,
5097,
376,
2831,
313,
29995,
5513,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29947,
29929,
29955,
29953,
29906,
29918,
29896,
5754,
376,
14769,
475,
303,
313,
29995,
5513,
306,
5265,
6059,
14210,
29941,
29945,
29892,
29955,
29947,
29906,
29995,
29898,
29953,
29929,
29897,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
2831,
313,
29995,
5513,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29947,
29929,
29955,
29953,
29906,
29918,
29896,
5754,
376,
14769,
475,
303,
313,
29995,
5513,
306,
5265,
6059,
14210,
29941,
29945,
29892,
29955,
29947,
29906,
29995,
29898,
29953,
29929,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many for percentages are there when the against percentage is 35,782 (69)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10798928_1 (
"Original title" text,
"Year (Ceremony)" text,
Result text,
"Film title used in nomination" text,
Director text
);
CREATE TABLE table_1_1289762_1 (
"For (%)" text,
"Against (%)" text,
"s Spoilt vote" numeric,
Constituency text,
Electorate numeric,
"Total poll (%)" text
);
CREATE TABLE table_1_10749367_3 (
"Test-taker" text,
"Passed?" text,
Challenge text,
"#" numeric,
"Air Date" text,
Winner text
);
CREATE TABLE table_1_10015132_14 (
"Years in Toronto" text,
"School/Club Team" text,
Nationality text,
Player text,
"No." numeric,
Position text
);
CREATE TABLE table_1_12028543_3 (
LosingTeam text,
"Cup Final Attendance" numeric,
WinningTeam text,
Season text,
"Cup FinalDate" text,
Location text,
Score text
);
CREATE TABLE table_1_11256021_1 (
"Extroverted, Relationship-Oriented" text,
Date text,
"Extroversion Scales" text,
Moderate text,
"Introverted, Task-Oriented" text,
Founder text,
"Extroverted, Task-Oriented" text,
"People-task orientation scale" text,
"Introverted, Relationship Oriented" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many for percentages are there when the against percentage is 35,782 (69)?`
```sql
| SELECT "For (%)" FROM table_1_1289762_1 WHERE "Against (%)" ILIKE '%35,782%(69)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
8778,
8583,
29892,
746,
323,
347,
694,
338,
376,
29906,
29955,
8652,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29953,
29946,
29945,
29946,
29918,
29896,
313,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29953,
29945,
29946,
29955,
29918,
29896,
313,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
29908,
2499,
2404,
1024,
29908,
1426,
29892,
13,
12,
17936,
1426,
29892,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
29892,
13,
12,
29908,
29924,
1175,
272,
11395,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29900,
29945,
29900,
29953,
29900,
29918,
29896,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
20325,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29945,
29896,
29947,
29900,
29941,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
29911,
347,
694,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
8778,
8583,
29892,
746,
323,
347,
694,
338,
376,
29906,
29955,
8652,
29952,
13,
28956,
2850,
13,
5097,
376,
11184,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29945,
29896,
29947,
29900,
29941,
29918,
29896,
5754,
376,
29911,
347,
694,
29908,
306,
5265,
6059,
14210,
29906,
29955,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
376,
11184,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29945,
29896,
29947,
29900,
29941,
29918,
29896,
5754,
376,
29911,
347,
694,
29908,
306,
5265,
6059,
14210,
29906,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Home Team, when Tie no is "27"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1046454_1 (
League text,
Playoffs text,
Division numeric,
Year numeric,
"Regular Season" text,
"Open Cup" text
);
CREATE TABLE table_1_10416547_1 (
Duration text,
"Track title" text,
"Album name" text,
Track text,
"Music genre/style" text,
Lyricist text,
"Major instrument(s)" text,
"Lyrics theme/style" text
);
CREATE TABLE table_1_10705060_1 (
Position text,
"Team Name" text,
Season text,
Series text,
Poles numeric,
Races numeric,
Wins numeric,
Points numeric
);
CREATE TABLE table_2_17751803_1 (
Score text,
Date text,
"Home team" text,
"Tie no" text,
"Away team" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Home Team, when Tie no is "27"?`
```sql
| SELECT "Home team" FROM table_2_17751803_1 WHERE "Tie no" ILIKE '%27%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
5120,
1434,
29871,
29906,
29900,
29900,
29947,
746,
1024,
310,
1900,
29871,
29896,
29906,
29900,
29900,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29929,
29946,
29947,
29941,
29906,
29918,
29896,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29955,
29900,
29946,
29900,
29918,
29953,
313,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29946,
29896,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
6816,
273,
22329,
2159,
313,
262,
29871,
29906,
29900,
29900,
29953,
5513,
1426,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
1426,
29892,
13,
12,
4035,
9265,
1426,
29892,
13,
12,
29908,
19302,
713,
5046,
313,
262,
29871,
29906,
29900,
29900,
29953,
5513,
1426,
29892,
13,
12,
29908,
12310,
2785,
313,
262,
29871,
29906,
29900,
29900,
29947,
5513,
16985,
29892,
13,
12,
29908,
29954,
834,
1803,
287,
408,
263,
7946,
4408,
29908,
1426,
29892,
13,
12,
29908,
29928,
575,
537,
20374,
8848,
30088,
5513,
16985,
29892,
13,
12,
29908,
2539,
937,
17141,
408,
263,
1014,
9265,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29946,
29955,
29900,
29955,
29947,
29918,
29906,
313,
13,
12,
29908,
5809,
29898,
29879,
5513,
1426,
29892,
13,
12,
4775,
1426,
29892,
13,
12,
18457,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1170,
278,
5120,
1434,
29871,
29906,
29900,
29900,
29947,
746,
1024,
310,
1900,
29871,
29896,
29906,
29900,
29900,
29952,
13,
28956,
2850,
13,
5097,
11069,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29946,
29955,
29900,
29955,
29947,
29918,
29906,
5754,
376,
12883,
29908,
529,
525,
29906,
29900,
29900,
29947,
29915,
5300,
376,
1170,
29908,
306,
5265,
6059,
14210,
13318,
29995,
29896,
29906,
29900,
29900,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
11069,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29946,
29955,
29900,
29955,
29947,
29918,
29906,
5754,
376,
12883,
29908,
529,
525,
29906,
29900,
29900,
29947,
29915,
5300,
376,
1170,
29908,
306,
5265,
6059,
14210,
13318,
29995,
29896,
29906,
29900,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the region before 2008 when name of best 1200`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11694832_1 (
"Directed by" text,
"Written by" text,
"No. in series" numeric,
Title text,
"No. in season" numeric,
"U.S. viewers (millions)" text,
"Original air date" text,
"Production code" text
);
CREATE TABLE table_1_11622829_1 (
"Purse( $ )" numeric,
Winner text,
Date text,
Location text,
Tournament text,
Score text,
"1st Prize( $ )" numeric
);
CREATE TABLE table_1_11207040_6 (
"Date of vacancy" text,
"Replaced by" text,
Team text,
"Manner of departure" text,
"Outgoing manager" text,
"Date of appointment" text
);
CREATE TABLE table_1_1174162_1 (
"Mean household size (in 2006)" text,
"Area (km²)" text,
Suburb text,
"Median age (in 2006)" text,
"Population (in 2008)" numeric,
"Gazetted as a Division Name" text,
"Density (/km²)" numeric,
"Date first settled as a suburb" numeric
);
CREATE TABLE table_2_11947078_2 (
"Format(s)" text,
Label text,
Region text,
Name text,
Year numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Name the region before 2008 when name of best 1200`
```sql
| SELECT Region FROM table_2_11947078_2 WHERE "Year" < '2008' AND "Name" ILIKE '%best%1200%' |