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,
29915,
29879,
278,
3001,
14333,
749,
310,
278,
454,
21628,
297,
4259,
310,
29871,
29906,
29900,
29896,
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,
29947,
29896,
29945,
29941,
29945,
29906,
29918,
29896,
313,
13,
12,
20779,
1426,
29892,
13,
12,
29903,
637,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29909,
19698,
14333,
749,
29908,
16985,
29892,
13,
12,
29908,
11536,
14333,
749,
29908,
16985,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
29954,
1280,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29896,
29900,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29953,
29900,
29955,
29896,
29918,
29896,
313,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
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,
3782,
1213,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
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,
3563,
497,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
29892,
13,
12,
29934,
618,
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,
29915,
29879,
278,
3001,
14333,
749,
310,
278,
454,
21628,
297,
4259,
310,
29871,
29906,
29900,
29896,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
11536,
14333,
749,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29945,
29941,
29945,
29906,
29918,
29896,
5754,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29896,
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,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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,
5097,
21122,
703,
11536,
14333,
749,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29945,
29941,
29945,
29906,
29918,
29896,
5754,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29896,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the total attendance of the leagues in season of 2010?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10815352_1 (
Country text,
Sport text,
Season text,
"Average attendance" numeric,
"Total attendance" numeric,
League text,
Games numeric
);
CREATE TABLE table_1_11960610_10 (
"High rebounds" text,
Team text,
Date text,
"Location Attendance" text,
Score text,
"High assists" text,
Record text,
Game numeric,
"High points" text
);
CREATE TABLE table_1_1046071_1 (
Division numeric,
"Regular Season" text,
Playoffs text,
Year numeric,
"Open Cup" text
);
CREATE TABLE table_1_10015132_2 (
Nationality text,
"No." text,
Position text,
"School/Club Team" text,
Player text,
"Years in Toronto" text
);
CREATE TABLE table_1_11803648_21 (
Overall text,
Position text,
"Club team" text,
Round numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What's the total attendance of the leagues in season of 2010?`
```sql
| SELECT COUNT("Total attendance") FROM table_1_10815352_1 WHERE "Season" ILIKE '%2010%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4513,
310,
5839,
29871,
29953,
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,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29953,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29900,
29896,
29955,
29947,
29918,
29896,
313,
13,
12,
29907,
11960,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
7011,
313,
2527,
414,
5513,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29908,
29907,
5060,
3309,
313,
2527,
414,
5513,
16985,
29892,
13,
12,
29908,
12883,
310,
7632,
29908,
16985,
29892,
13,
12,
29908,
1170,
310,
278,
9459,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29906,
29945,
29945,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
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,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29947,
29941,
29945,
29953,
29900,
29918,
29896,
313,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29947,
29896,
29955,
29953,
29947,
29918,
29906,
313,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29940,
860,
978,
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,
4513,
310,
5839,
29871,
29953,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
21595,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29947,
29941,
29945,
29953,
29900,
29918,
29896,
5754,
376,
29925,
860,
29908,
353,
525,
29953,
29941,
29915,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
21595,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29947,
29941,
29945,
29953,
29900,
29918,
29896,
5754,
376,
29925,
860,
29908,
353,
525,
29953,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the round of pick 63?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11545282_6 (
"No." numeric,
Nationality text,
"Years for Jazz" text
);
CREATE TABLE table_1_10020178_1 (
Canton text,
Name text,
"Height (meters)" numeric,
Type text,
"Crest length (meters)" numeric,
"Year of construction" numeric,
"Name of the Lake" text
);
CREATE TABLE table_1_11964263_13 (
Team text,
"High points" text,
Date text,
Game numeric,
"Location Attendance" text,
Series text,
Score text,
"High rebounds" text,
"High assists" text
);
CREATE TABLE table_1_11622255_1 (
Location text,
Tournament text,
"Purse( $ )" numeric,
"1st Prize( $ )" numeric,
Winner text
);
CREATE TABLE table_2_17383560_1 (
Pick numeric,
Round numeric,
Player text,
"School/Club Team" text,
Position text
);
CREATE TABLE table_1_10581768_2 (
Institution text,
Enrollment numeric,
Nickname text,
Founded numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the round of pick 63?`
```sql
| SELECT Round FROM table_2_17383560_1 WHERE "Pick" = '63' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
17202,
310,
1776,
414,
18515,
287,
297,
363,
376,
9984,
4104,
278,
2088,
24208,
322,
2401,
284,
278,
12362,
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,
29929,
29941,
29906,
29955,
29941,
29929,
29918,
29906,
313,
13,
12,
29908,
28516,
326,
1175,
272,
319,
11497,
313,
319,
29965,
1723,
29908,
1426,
29892,
13,
12,
29908,
9908,
616,
12885,
313,
29885,
29914,
29879,
5513,
1426,
29892,
13,
12,
29908,
20334,
300,
5167,
29908,
1426,
29892,
13,
12,
29908,
2816,
29890,
2410,
29498,
29908,
1426,
29892,
13,
12,
29908,
6362,
522,
519,
491,
6160,
1426,
29892,
13,
12,
20334,
300,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29941,
29896,
29896,
29946,
29955,
29900,
29945,
29918,
29955,
313,
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,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29940,
29889,
29999,
29889,
1776,
414,
313,
386,
681,
392,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
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,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29947,
29900,
29945,
29955,
29945,
29918,
29896,
313,
13,
12,
23665,
428,
16985,
29892,
13,
12,
26382,
16985,
29892,
13,
12,
29923,
781,
2200,
537,
16985,
29892,
13,
12,
29908,
18213,
29889,
5864,
29908,
16985,
29892,
13,
12,
12415,
2028,
1426,
29892,
13,
12,
29908,
3217,
29871,
29906,
448,
331,
2333,
29908,
16985,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29941,
29906,
29945,
29906,
29953,
29918,
29906,
313,
13,
12,
29908,
29950,
913,
11848,
2596,
29908,
16985,
29892,
13,
12,
29908,
3170,
2440,
29908,
1426,
29892,
13,
12,
6572,
16604,
1426,
29892,
13,
12,
23182,
1426,
29892,
13,
12,
29908,
2713,
666,
4408,
29908,
1426,
29892,
13,
12,
9842,
1426,
29892,
13,
12,
2385,
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,
17202,
310,
1776,
414,
18515,
287,
297,
363,
376,
9984,
4104,
278,
2088,
24208,
322,
2401,
284,
278,
12362,
8652,
29952,
13,
28956,
2850,
13,
5097,
376,
29940,
29889,
29999,
29889,
1776,
414,
313,
386,
681,
392,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29896,
29896,
29946,
29955,
29900,
29945,
29918,
29955,
5754,
376,
7030,
29908,
306,
5265,
6059,
14210,
29908,
9984,
29995,
21878,
29995,
1552,
29995,
9485,
24208,
29995,
392,
29995,
2052,
284,
29995,
1552,
29995,
20475,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29940,
29889,
29999,
29889,
1776,
414,
313,
386,
681,
392,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29896,
29896,
29946,
29955,
29900,
29945,
29918,
29955,
5754,
376,
7030,
29908,
306,
5265,
6059,
14210,
29908,
9984,
29995,
21878,
29995,
1552,
29995,
9485,
24208,
29995,
392,
29995,
2052,
284,
29995,
1552,
29995,
20475,
29908,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many thousands of viewers tuned in for "Make Mad the Guilty and Appal the Free"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10932739_2 (
"Semimajor Axis ( AU )" text,
"Radial velocity (m/s)" text,
"Planet Type" text,
"Orbital Period" text,
"Detectable by:" text,
Planet text
);
CREATE TABLE table_1_23114705_7 (
"Directed by" text,
"Written by" text,
"Original air date" text,
Title text,
"No. in season" numeric,
"N.Z. viewers (thousand)" text,
"No. in series" numeric
);
CREATE TABLE table_1_12030612_9 (
"Directed by" text,
"Season #" numeric,
"Original air date" text,
"Series #" numeric
);
CREATE TABLE table_1_10580575_1 (
Production numeric,
Export numeric,
Electricity numeric,
"Prim. energy" numeric,
Capita text,
"CO 2 -emission" numeric,
"unnamed_0" numeric
);
CREATE TABLE table_1_12232526_2 (
"Hull Numbers" numeric,
"Service years" text,
Previously text,
Origin text,
"Ship Name" text,
Note text,
Class text
);
```
### Answer
Here is the SQL query that answers the question:
`How many thousands of viewers tuned in for "Make Mad the Guilty and Appal the Free"?`
```sql
| SELECT "N.Z. viewers (thousand)" FROM table_1_23114705_7 WHERE "Title" ILIKE '%"Make%Mad%the%Guilty%and%Appal%the%Free"%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
8982,
29925,
399,
310,
263,
3878,
23860,
341,
12661,
7621,
1135,
29871,
29947,
29929,
29889,
29945,
297,
278,
4272,
310,
399,
1161,
18712,
29892,
10319,
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,
29946,
29906,
29900,
29941,
29906,
29945,
29953,
29918,
29906,
313,
13,
12,
29908,
5594,
1804,
29908,
1426,
29892,
13,
12,
29908,
29943,
4174,
5235,
29908,
1426,
29892,
13,
12,
29908,
16885,
310,
19405,
29908,
1426,
29892,
13,
12,
29908,
23923,
23860,
341,
12661,
29908,
16985,
29892,
13,
12,
2385,
1426,
29892,
13,
12,
29908,
1001,
29925,
399,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29906,
313,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
8003,
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,
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,
7030,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29359,
29873,
4539,
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,
8982,
29925,
399,
310,
263,
3878,
23860,
341,
12661,
7621,
1135,
29871,
29947,
29929,
29889,
29945,
297,
278,
4272,
310,
399,
1161,
18712,
29892,
10319,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1001,
29925,
399,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29906,
29900,
29941,
29906,
29945,
29953,
29918,
29906,
5754,
376,
23923,
23860,
341,
12661,
29908,
1405,
525,
29947,
29929,
29889,
29945,
29915,
5300,
376,
16885,
310,
19405,
29908,
306,
5265,
6059,
14210,
29893,
1161,
18712,
24163,
4776,
294,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1001,
29925,
399,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29906,
29900,
29941,
29906,
29945,
29953,
29918,
29906,
5754,
376,
23923,
23860,
341,
12661,
29908,
1405,
525,
29947,
29929,
29889,
29945,
29915,
5300,
376,
16885,
310,
19405,
29908,
306,
5265,
6059,
14210,
29893,
1161,
18712,
24163,
4776,
294,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the ERP W of a Frequency MHz greater than 89.5 in the city of Washburn, Texas?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_14203256_2 (
"Call sign" text,
"FCC info" text,
"City of license" text,
"Frequency MHz" numeric,
Class text,
"ERP W" numeric
);
CREATE TABLE table_1_1213511_2 (
"Pick #" numeric,
"College/junior/club team" text,
Position text,
Player text,
"NHL team" text,
Nationality text
);
CREATE TABLE table_1_10470082_5 (
"US air date" text,
"No." numeric,
Title text,
"#" numeric,
Villains text,
Writer text,
Storyteller text,
Director text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the ERP W of a Frequency MHz greater than 89.5 in the city of Washburn, Texas?`
```sql
| SELECT "ERP W" FROM table_2_14203256_2 WHERE "Frequency MHz" > '89.5' AND "City of license" ILIKE '%washburn,%texas%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
2635,
746,
278,
6003,
434,
338,
380,
1943,
10684,
409,
948,
29875,
413,
792,
11555,
1919,
6836,
420,
29891,
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,
29955,
29900,
29955,
29941,
29929,
29896,
29918,
29896,
313,
13,
12,
2539,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29946,
29941,
29896,
29906,
29918,
29945,
313,
13,
12,
29908,
24636,
1024,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
16493,
29879,
322,
18481,
29908,
16985,
29892,
13,
12,
29908,
13799,
297,
2383,
30088,
29908,
1426,
29892,
13,
12,
29908,
26036,
1024,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
472,
29871,
29906,
29900,
29896,
29900,
20121,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29945,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29941,
29946,
29900,
29941,
29906,
29918,
29896,
313,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
2052,
492,
2925,
1426,
29892,
13,
12,
29908,
22814,
9681,
29908,
1426,
29892,
13,
12,
4597,
2132,
800,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
1542,
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,
2635,
746,
278,
6003,
434,
338,
380,
1943,
10684,
409,
948,
29875,
413,
792,
11555,
1919,
6836,
420,
29891,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29900,
29955,
29941,
29929,
29896,
29918,
29896,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
303,
1943,
29995,
29887,
1690,
8165,
29995,
344,
948,
29875,
29995,
29895,
792,
11555,
13667,
29995,
1240,
420,
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,
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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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29900,
29955,
29941,
29929,
29896,
29918,
29896,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
303,
1943,
29995,
29887,
1690,
8165,
29995,
344,
948,
29875,
29995,
29895,
792,
11555,
13667,
29995,
1240,
420,
29891,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the date when the venue is stade général seyni kountché , niamey?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18707391_1 (
Date text,
Competition text,
Score text,
Venue text,
Result text
);
CREATE TABLE table_1_1104312_5 (
"English name" text,
"Number of settlements and villages" numeric,
"Area in km²" text,
"Original name" text,
"Population at 2010 Census" numeric
);
CREATE TABLE table_1_11677100_5 (
Player text,
"MLB Draft" text,
School text,
Position text,
Hometown text
);
CREATE TABLE table_1_11934032_1 (
District text,
Appliances text,
"Station Number" text,
Registrations text,
Location text,
Type text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the date when the venue is stade général seyni kountché , niamey?`
```sql
| SELECT Date FROM table_2_18707391_1 WHERE "Venue" ILIKE '%stade%général%seyni%kountché%,%niamey%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
10769,
411,
263,
2602,
526,
9904,
363,
278,
29871,
29906,
29900,
29900,
29929,
4259,
29973,
421,
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,
29929,
29896,
29945,
29918,
29896,
313,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
2539,
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,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29945,
29946,
29953,
29941,
29896,
29947,
29947,
29918,
29896,
29955,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
10644,
23493,
3025,
29908,
1426,
29892,
13,
12,
4557,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29947,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29945,
29955,
29946,
29947,
29918,
29906,
313,
13,
12,
29908,
17392,
272,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
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,
5328,
1784,
10769,
411,
263,
2602,
526,
9904,
363,
278,
29871,
29906,
29900,
29900,
29929,
4259,
29973,
421,
13,
28956,
2850,
13,
5097,
21122,
29898,
24815,
22122,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29946,
29953,
29941,
29896,
29947,
29947,
29918,
29896,
29955,
5754,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29900,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
24815,
22122,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29946,
29953,
29941,
29896,
29947,
29947,
29918,
29896,
29955,
5754,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29900,
29929,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many players with a position are listed for the 2009 season? `
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11621915_1 (
Winner text,
"Purse( $ )" numeric,
Date text,
Tournament text,
Score text,
"1st Prize( $ )" numeric,
Location text
);
CREATE TABLE table_1_15463188_17 (
"School/Club Team" text,
Name text,
Position text,
Season text,
"Acquisition via" text,
Number numeric
);
CREATE TABLE table_1_11621873_1 (
"Purse( $ )" numeric,
Tournament text,
Score text
);
CREATE TABLE table_1_11715748_2 (
"Director(s)" text,
"Series #" numeric,
"Season #" numeric,
"Writer(s)" text,
"Original airdate" text,
Title text
);
```
### Answer
Here is the SQL query that answers the question:
`How many players with a position are listed for the 2009 season? `
```sql
| SELECT COUNT(POSITION) FROM table_1_15463188_17 WHERE "Season" ILIKE '%2009%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
3271,
3815,
472,
14212,
4815,
373,
29871,
29906,
29900,
3786,
29871,
29896,
29929,
29945,
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,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29945,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29946,
29947,
29955,
29929,
29906,
29918,
29906,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29924,
898,
388,
1426,
29892,
13,
12,
1349,
1295,
3250,
1426,
29892,
13,
12,
29943,
2429,
388,
1426,
29892,
13,
12,
29903,
20510,
1426,
29892,
13,
12,
29956,
287,
4515,
3250,
1426,
29892,
13,
12,
29903,
870,
388,
1426,
29892,
13,
12,
29911,
1041,
3250,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29955,
29900,
29946,
29900,
29918,
29945,
313,
13,
12,
19409,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
16382,
342,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
12415,
5946,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29900,
29947,
29953,
29955,
29953,
29918,
29955,
313,
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,
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,
29906,
29918,
29896,
29900,
29955,
29955,
29946,
29947,
29929,
29896,
29918,
29896,
313,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29906,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
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,
22110,
338,
278,
3271,
3815,
472,
14212,
4815,
373,
29871,
29906,
29900,
3786,
29871,
29896,
29929,
29945,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
11184,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29946,
29947,
29929,
29896,
29918,
29896,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29995,
481,
4115,
29995,
29896,
29929,
29945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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
11184,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29946,
29947,
29929,
29896,
29918,
29896,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29995,
481,
4115,
29995,
29896,
29929,
29945,
29955,
29001,
5300,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
29894,
919,
4108,
29995,
6378,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the home team at Victoria Park on 20 April 1957?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_5 (
Player text,
Position text,
Hometown text,
"MLB Draft" text,
School text
);
CREATE TABLE table_1_11748792_2 (
Series text,
Monday text,
Thursday text,
Friday text,
Saturday text,
Wednesday text,
Sunday text,
Tuesday text
);
CREATE TABLE table_1_11207040_5 (
Team text,
Stadium text,
Lowest numeric,
Highest numeric,
Average numeric,
Capacity numeric
);
CREATE TABLE table_1_10908676_7 (
"No. in series" numeric,
"No. in season" numeric,
"Written by" text,
"Directed by" text,
"Original air date" text,
Title text
);
CREATE TABLE table_2_10774891_1 (
"Home team" text,
"Home team score" text,
Venue text,
Crowd numeric,
"Away team score" text,
Date text,
"Away team" text
);
CREATE TABLE table_1_11677691_12 (
Hometown text,
Position text,
College text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the home team at Victoria Park on 20 April 1957?`
```sql
| SELECT "Home team" FROM table_2_10774891_1 WHERE "Date" ILIKE '%20%april%1957%' AND "Venue" ILIKE '%victoria%park%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
24577,
1629,
9904,
363,
376,
3062,
526,
366,
2675,
304,
590,
5360,
29908,
515,
278,
3769,
443,
1573,
591,
2317,
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,
7030,
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,
29908,
29963,
2911,
262,
29914,
29879,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
5920,
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,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29953,
29945,
29896,
29947,
29900,
29918,
29896,
313,
13,
12,
15771,
1426,
29892,
13,
12,
13953,
1426,
29892,
13,
12,
29908,
9182,
3858,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
2499,
2404,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29900,
29947,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
5371,
3118,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
3001,
1776,
292,
29908,
16985,
29892,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29946,
313,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
29892,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29940,
290,
3381,
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,
29915,
29879,
278,
24577,
1629,
9904,
363,
376,
3062,
526,
366,
2675,
304,
590,
5360,
29908,
515,
278,
3769,
443,
1573,
591,
2317,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29953,
29945,
29896,
29947,
29900,
29918,
29896,
5754,
376,
2499,
2404,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
705,
29995,
1689,
29001,
5300,
376,
15771,
29908,
306,
5265,
6059,
14210,
29908,
3062,
29995,
598,
29995,
6293,
29995,
17696,
29995,
517,
29995,
1357,
29995,
417,
345,
29908,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29953,
29945,
29896,
29947,
29900,
29918,
29896,
5754,
376,
2499,
2404,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
705,
29995,
1689,
29001,
5300,
376,
15771,
29908,
306,
5265,
6059,
14210,
29908,
3062,
29995,
598,
29995,
6293,
29995,
17696,
29995,
517,
29995,
1357,
29995,
417,
345,
29908,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the earliest year listed for "where are you going to my love" from the album united we stand?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1231892_4 (
Title text,
"Broadcast Order" text,
"U.S. Air Date" text,
"Number in series" numeric,
"Villain/s" text,
"Production Code" text
);
CREATE TABLE table_1_12121208_1 (
"Mens doubles" text,
"Womens singles" text,
"Mixed doubles" text,
"Mens singles" text,
"Womens doubles" text
);
CREATE TABLE table_2_16865180_1 (
Single text,
Month text,
"Record label" text,
Year numeric,
Album text
);
CREATE TABLE table_1_103084_4 (
"BBC One Rank" text,
"BBC One total viewing" numeric,
"BBC Two Rank" text,
"Broadcast date" text,
"BBC Two total viewing" text
);
CREATE TABLE table_1_10236830_4 (
"Film Name" text,
"Actors Name" text,
Country text,
Nomination text,
Director text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the earliest year listed for "where are you going to my love" from the album united we stand?`
```sql
| SELECT MIN(YEAR) FROM table_2_16865180_1 WHERE "Album" ILIKE '%united%we%stand%' AND "Single" ILIKE '%"where%are%you%going%to%my%love"%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
7439,
1089,
292,
310,
2524,
1111,
6013,
276,
3350,
750,
825,
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,
29896,
29946,
29955,
29947,
29945,
29906,
29918,
29896,
313,
13,
12,
29908,
29949,
1233,
287,
1951,
29908,
1426,
29892,
13,
12,
22814,
1426,
29892,
13,
12,
29908,
16885,
310,
19405,
29914,
9802,
300,
29908,
1426,
29892,
13,
12,
29908,
13599,
5648,
313,
360,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
12883,
310,
23736,
362,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29941,
29941,
29929,
29953,
29918,
29945,
313,
13,
12,
29908,
8120,
1338,
11454,
303,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
8120,
1338,
1152,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
1152,
7740,
29887,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29906,
29946,
29929,
29946,
29929,
29918,
29896,
29906,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29949,
407,
265,
1237,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
7439,
1089,
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,
7439,
1089,
292,
310,
2524,
1111,
6013,
276,
3350,
750,
825,
14743,
29973,
29952,
13,
28956,
2850,
13,
5097,
29427,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29427,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29906,
29946,
29929,
29946,
29929,
29918,
29896,
29906,
5754,
376,
7439,
1089,
292,
29908,
306,
5265,
6059,
14210,
16799,
1111,
29995,
571,
276,
3350,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Partnering of franco ferreiro had what tournament?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11147852_1 (
"Owned since" text,
Station text,
"City of license/Market" text,
"Channel TV ( DT )" text,
"Year of affiliation" text
);
CREATE TABLE table_1_1253396_5 (
"Goals Against Avg." text,
"Goals Against" numeric,
"Overall Record" text,
Club text,
"Goals For" numeric,
"Goals For Avg." text
);
CREATE TABLE table_2_14924949_12 (
Score text,
Opponents text,
Tournament text,
Date text,
Surface text,
Partnering text
);
```
### Answer
Here is the SQL query that answers the question:
`Partnering of franco ferreiro had what tournament?`
```sql
| SELECT Tournament FROM table_2_14924949_12 WHERE "Partnering" ILIKE '%franco%ferreiro%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
2407,
746,
278,
1570,
3088,
8360,
7358,
5318,
472,
278,
12115,
19906,
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,
29945,
29941,
29945,
29900,
29918,
29896,
313,
13,
12,
29908,
2182,
1131,
1336,
10069,
6599,
29908,
1426,
29892,
13,
12,
29908,
7976,
24839,
29908,
1426,
29892,
13,
12,
21472,
1426,
29892,
13,
12,
29908,
23665,
428,
29498,
29908,
1426,
29892,
13,
12,
29908,
12412,
5915,
5946,
29908,
1426,
29892,
13,
12,
29908,
2525,
1169,
7138,
1133,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29941,
313,
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,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29947,
29953,
29906,
29941,
29955,
29918,
29896,
313,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
29924,
3747,
19903,
19576,
29908,
1426,
29892,
13,
12,
29908,
29906,
29945,
29900,
617,
19576,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29896,
29906,
29945,
617,
19576,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29906,
29896,
29947,
29953,
29947,
29918,
29946,
313,
13,
12,
14199,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
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,
471,
278,
2407,
746,
278,
1570,
3088,
8360,
7358,
5318,
472,
278,
12115,
19906,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29906,
29896,
29947,
29953,
29947,
29918,
29946,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29890,
11253,
29995,
29887,
7879,
29001,
5300,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
1482,
29995,
29891,
548,
29995,
3959,
7358,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29906,
29896,
29947,
29953,
29947,
29918,
29946,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29890,
11253,
29995,
29887,
7879,
29001,
5300,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
1482,
29995,
29891,
548,
29995,
3959,
7358,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the record when the New York Knicks played at the Boston Garden?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1245350_1 (
"Quattroporte IV" text,
"Max Speed" text,
Power text,
"Production Period" text,
"Engine Capacity" text,
"Units Produced" numeric
);
CREATE TABLE table_1_12159115_3 (
"Original air date" text,
"U.S. viewers (millions)" text,
"Written by" text,
"Series #" numeric,
Title text,
"Directed by" text,
"Season #" numeric,
"Production code" text
);
CREATE TABLE table_1_12186237_1 (
Round numeric,
"MotoGP winner" text,
"250cc winner" text,
Circuit text,
"125cc winner" text,
"Grand Prix" text,
Report text
);
CREATE TABLE table_2_13821868_4 (
Game numeric,
Record text,
Location text,
Opponent text,
Score text,
Date text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the record when the New York Knicks played at the Boston Garden?`
```sql
| SELECT Record FROM table_2_13821868_4 WHERE "Location" ILIKE '%boston%garden%' AND "Opponent" ILIKE '%new%york%knicks%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
2635,
756,
29871,
29896,
408,
278,
4723,
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,
29896,
29946,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29941,
29945,
29941,
29906,
29906,
29941,
29918,
29906,
313,
13,
12,
29908,
14199,
10781,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
15790,
2522,
487,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29945,
29946,
29906,
29929,
29953,
29918,
29896,
313,
13,
12,
5494,
19252,
1426,
29892,
13,
12,
1451,
481,
2153,
16985,
29892,
13,
12,
13404,
1426,
29892,
13,
12,
29965,
4174,
9998,
16985,
29892,
13,
12,
2385,
2450,
1426,
29892,
13,
12,
29943,
7261,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29906,
313,
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,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
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,
8809,
436,
2635,
756,
29871,
29896,
408,
278,
4723,
29973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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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29941,
29945,
29941,
29906,
29906,
29941,
29918,
29906,
5754,
376,
22606,
29908,
353,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which date has 1 as the week?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10015132_14 (
"No." numeric,
Position text,
Player text,
"School/Club Team" text,
Nationality text,
"Years in Toronto" text
);
CREATE TABLE table_2_15353223_2 (
"Game Site" text,
Record text,
Date text,
Week numeric,
Attendance text,
Opponent text,
"Final Score" text
);
CREATE TABLE table_1_10054296_1 (
Headquarters text,
Chapters numeric,
Member text,
UCCFS numeric,
Classification text,
Founded text
);
CREATE TABLE table_1_12226390_2 (
Title text,
"Written by" text,
"No. in series" numeric,
"Production code" numeric,
"Directed by" text,
"Original air date" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which date has 1 as the week?`
```sql
| SELECT Date FROM table_2_15353223_2 WHERE "Week" = '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
10769,
892,
18195,
287,
515,
425,
791,
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,
29896,
29955,
29900,
29953,
29946,
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,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29900,
29946,
29955,
29918,
29929,
313,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
11184,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
885,
9386,
29908,
1426,
29892,
13,
12,
855,
276,
557,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29955,
29906,
29896,
29945,
29918,
29941,
313,
13,
12,
29934,
29881,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
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,
29925,
1772,
20627,
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,
10769,
892,
18195,
287,
515,
425,
791,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
9207,
29931,
8583,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29896,
29955,
29900,
29953,
29946,
29946,
29918,
29945,
5754,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
29931,
7712,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
9207,
29931,
8583,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29896,
29955,
29900,
29953,
29946,
29946,
29918,
29945,
5754,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
29931,
7712,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many players were drafted from laval?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_20170644_5 (
"Pick #" numeric,
College text,
"CFL Team" text,
Position text,
Player text
);
CREATE TABLE table_1_11964047_9 (
Visitor text,
"#" numeric,
Record text,
Attendance text,
Home text,
"Leading scorer" text,
Streak text,
Date text,
Score text
);
CREATE TABLE table_1_10527215_3 (
Rd numeric,
Report text,
"Winning driver" text,
"Winning team" text,
Name text,
"Fastest Lap" text,
"Pole Position" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many players were drafted from laval?`
```sql
| SELECT COUNT("CFL Team") FROM table_1_20170644_5 WHERE "College" ILIKE '%Laval%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
3291,
411,
3109,
1135,
29871,
29946,
29929,
3291,
297,
29871,
29906,
29900,
29900,
29947,
29899,
29900,
29929,
29892,
322,
29871,
29946,
29953,
3291,
297,
29871,
29906,
29900,
29900,
29953,
29899,
29900,
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,
29896,
29953,
29900,
29946,
29947,
29900,
29946,
29918,
29945,
313,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
3306,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
5709,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29955,
29900,
29906,
29953,
29896,
29918,
29953,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29941,
5499,
29908,
16985,
29892,
13,
12,
29908,
7031,
29871,
29906,
29945,
29908,
16985,
29892,
13,
12,
29908,
29956,
1144,
313,
29924,
1175,
943,
5513,
1426,
29892,
13,
12,
29908,
29907,
8842,
1754,
29908,
1426,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
16985,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
29908,
3253,
5143,
287,
26654,
6588,
313,
10003,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29900,
29947,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
3563,
497,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29896,
29896,
29945,
29947,
29918,
29941,
313,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
1426,
29892,
13,
12,
29908,
29907,
8842,
1754,
20605,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29879,
29908,
16985,
29892,
13,
12,
29908,
25353,
8341,
29908,
1426,
29892,
13,
12,
29908,
29903,
2616,
292,
7115,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29946,
29953,
29955,
29929,
29900,
29918,
29906,
313,
13,
12,
22606,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29906,
29953,
29941,
29941,
29953,
29918,
29896,
29900,
313,
13,
12,
29908,
29906,
29900,
29900,
29947,
29994,
29900,
29929,
349,
1372,
29908,
16985,
29892,
13,
12,
29908,
11536,
349,
1372,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29953,
29994,
29900,
29955,
349,
1372,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
11536,
349,
430,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29955,
29994,
29900,
29947,
349,
1372,
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,
3001,
1353,
310,
3291,
411,
3109,
1135,
29871,
29946,
29929,
3291,
297,
29871,
29906,
29900,
29900,
29947,
29899,
29900,
29929,
29892,
322,
29871,
29946,
29953,
3291,
297,
29871,
29906,
29900,
29900,
29953,
29899,
29900,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
11536,
349,
1372,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29906,
29953,
29941,
29941,
29953,
29918,
29896,
29900,
5754,
376,
29906,
29900,
29900,
29947,
29994,
29900,
29929,
349,
1372,
29908,
529,
525,
29946,
29929,
29915,
5300,
376,
29906,
29900,
29900,
29953,
29994,
29900,
29955,
349,
1372,
29908,
306,
5265,
6059,
14210,
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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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
11536,
349,
1372,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29906,
29953,
29941,
29941,
29953,
29918,
29896,
29900,
5754,
376,
29906,
29900,
29900,
29947,
29994,
29900,
29929,
349,
1372,
29908,
529,
525,
29946,
29929,
29915,
5300,
376,
29906,
29900,
29900,
29953,
29994,
29900,
29955,
349,
1372,
29908,
306,
5265,
6059,
14210,
29946,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11604804_5 (
Founded numeric,
Color text,
Nickname text,
Institution text,
Location text,
Status text
);
CREATE TABLE table_1_11570261_6 (
Year numeric,
"3rd" numeric,
"Top 25" numeric,
"Wins (Majors)" text,
"Cuts made" text,
"Earnings ($)" numeric,
"Top 10" numeric,
"Money list rank" numeric,
Starts numeric,
"2nd" numeric,
"Adjusted scoring average (rank)" text
);
CREATE TABLE table_1_10360823_1 (
"Player name" text,
Position text,
Choice numeric,
Round numeric,
College text,
Overall numeric
);
CREATE TABLE table_1_10021158_3 (
"Scoring average" text,
"Tournaments played" numeric,
"Money list rank" text,
"Cuts made*" numeric,
"Top 10s" numeric,
"Best finish" text,
"Scoring rank" text,
Wins numeric
);
CREATE TABLE table_1_10646790_2 (
Week numeric,
Record text,
Date text,
Result text,
Stadium text,
Attendance numeric,
Opponent text
);
CREATE TABLE table_2_18226336_10 (
"2008–09 Pts" numeric,
"Total Pts" numeric,
"2006–07 Pts" text,
Team text,
"Total Pld" numeric,
"2007–08 Pts" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?`
```sql
| SELECT COUNT("Total Pts") FROM table_2_18226336_10 WHERE "2008–09 Pts" < '49' AND "2006–07 Pts" ILIKE '%46%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4523,
29914,
6821,
431,
8583,
756,
263,
21595,
7200,
1135,
29871,
29896,
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,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29896,
313,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
29892,
13,
12,
4763,
29879,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29941,
29918,
29906,
313,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29934,
815,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29955,
29955,
29900,
29896,
29918,
29946,
313,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
29992,
29878,
3358,
5513,
1426,
29892,
13,
12,
29908,
12412,
775,
29908,
1426,
29892,
13,
12,
29908,
3195,
1024,
29908,
1426,
29892,
13,
12,
20001,
1426,
29892,
13,
12,
29908,
4205,
29886,
9552,
313,
4912,
30168,
5513,
16985,
29892,
13,
12,
29908,
21472,
313,
567,
5513,
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,
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,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29947,
29896,
29955,
29953,
29947,
29918,
29906,
313,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29929,
29941,
29953,
29945,
29947,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29925,
860,
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,
4523,
29914,
6821,
431,
8583,
756,
263,
21595,
7200,
1135,
29871,
29896,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
4504,
1507,
29914,
6821,
431,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29929,
29941,
29953,
29945,
29947,
29918,
29896,
5754,
376,
29934,
618,
29908,
1405,
525,
29896,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
4504,
1507,
29914,
6821,
431,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29929,
29941,
29953,
29945,
29947,
29918,
29896,
5754,
376,
29934,
618,
29908,
1405,
525,
29896,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which School/Club Team has a Round larger than 16?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1012730_1 (
Winnings text,
Poles numeric,
"Top 10" numeric,
Wins numeric,
"Avg. Start" text,
"Avg. Finish" text,
Year numeric,
"Team(s)" text,
"Top 5" numeric,
Starts numeric
);
CREATE TABLE table_1_1140083_2 (
"Pole Position" text,
Constructor text,
Date text,
"Fastest Lap" text,
"Race Winner" text,
Rnd numeric,
Report text,
Location text,
Race text
);
CREATE TABLE table_1_1147701_4 (
"Torque (Nm@rpm)" text,
"Engine code" text,
"Model name" text,
Comment text,
"Displacement (cm³)" numeric,
"Power (ps)" numeric
);
CREATE TABLE table_1_12204717_1 (
"Mens doubles" text,
"Mens singles" text,
"Mixed doubles" text,
"Womens doubles" text,
"Womens singles" text
);
CREATE TABLE table_1_10581768_2 (
Founded numeric,
Institution text,
Enrollment numeric,
Type text,
Nickname text
);
CREATE TABLE table_2_15093658_1 (
Player text,
Round numeric,
"School/Club Team" text,
Position text,
Pick numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which School/Club Team has a Round larger than 16?`
```sql
| SELECT "School/Club Team" FROM table_2_15093658_1 WHERE "Round" > '16' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
8158,
310,
3748,
29871,
29941,
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,
29896,
29955,
29947,
29900,
29896,
29955,
29929,
29918,
29896,
313,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
16985,
29892,
13,
12,
29908,
29954,
11191,
313,
11522,
979,
5513,
1426,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
2028,
313,
11522,
979,
5513,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29947,
29900,
29906,
29918,
29896,
313,
13,
12,
29908,
21472,
29892,
9126,
29908,
1426,
29892,
13,
12,
29908,
1523,
2590,
11959,
29908,
1426,
29892,
13,
12,
29908,
19111,
3090,
914,
330,
799,
11959,
29908,
1426,
29892,
13,
12,
29908,
29907,
768,
936,
5272,
4279,
910,
338,
278,
9939,
5272,
4279,
472,
607,
278,
6012,
508,
6176,
967,
2989,
9126,
3081,
21700,
29889,
319,
29205,
445,
5272,
4279,
29892,
3081,
20074,
1283,
411,
3171,
408,
411,
263,
18180,
7051,
381,
630,
6012,
869,
2823,
5670,
3090,
914,
29937,
24528,
4279,
9545,
363,
4902,
1213,
1426,
29892,
13,
12,
29908,
25375,
1662,
21700,
29908,
1426,
29892,
13,
12,
29908,
21472,
29892,
2125,
2696,
29908,
1426,
29892,
13,
12,
29908,
29928,
719,
7688,
29908,
1426,
29892,
13,
12,
12412,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29945,
29929,
29929,
29946,
29929,
29945,
29918,
29953,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
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,
338,
278,
8158,
310,
3748,
29871,
29941,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29945,
29929,
29929,
29946,
29929,
29945,
29918,
29953,
5754,
376,
14199,
29908,
353,
525,
29941,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29945,
29929,
29929,
29946,
29929,
29945,
29918,
29953,
5754,
376,
14199,
29908,
353,
525,
29941,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the score of game 37?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11780179_1 (
Population numeric,
"Area (km²)" numeric,
"GDP (nominal)" text,
"GDP per capita (nominal)" text,
Country text
);
CREATE TABLE table_1_1123802_1 (
"Power, continuous" text,
"Compression ratio" text,
"Supercharger gear ratio" text,
"Critical altitude This is the highest altitude at which the engine can achieve its full continuous power rating. Above this altitude, power falls off with height as with a naturally aspirated engine . See Supercharger#Altitude effects for details." text,
"Octane rating" text,
"Power, takeoff" text,
"Dry weight" text,
Engine text
);
CREATE TABLE table_2_17599495_6 (
Date text,
Opponent text,
Score text,
Record text,
Game numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the score of game 37?`
```sql
| SELECT Score FROM table_2_17599495_6 WHERE "Game" = '37' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
10513,
272,
411,
263,
3086,
537,
411,
9728,
29892,
322,
385,
382,
2608,
1061,
310,
17164,
20444,
29892,
322,
385,
382,
2608,
630,
411,
29871,
29896,
29906,
29953,
29896,
29892,
13034,
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,
29896,
29896,
29929,
29953,
29941,
29945,
29941,
29953,
29918,
29896,
29896,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19204,
1426,
29892,
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,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29955,
29929,
29955,
29946,
29946,
29918,
29896,
313,
13,
12,
29923,
781,
272,
1426,
29892,
13,
12,
29923,
2608,
1061,
1426,
29892,
13,
12,
29923,
2608,
630,
1426,
29892,
13,
12,
29943,
2467,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
7514,
322,
18527,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29941,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29940,
5688,
360,
4154,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
7011,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29929,
29941,
29906,
29906,
29896,
29918,
29906,
313,
13,
12,
8325,
1426,
29892,
13,
12,
18552,
292,
1426,
29892,
13,
12,
29956,
7261,
1426,
29892,
13,
12,
1523,
2037,
1426,
29892,
13,
12,
5261,
3825,
1426,
29892,
13,
12,
29968,
24455,
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,
29924,
4992,
1051,
7115,
29908,
1426,
29892,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
7115,
29908,
1426,
29892,
13,
12,
29956,
1144,
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,
25353,
8341,
29908,
1426,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29900,
29906,
29900,
29955,
29918,
29947,
313,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
29164,
8276,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
10996,
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,
10513,
272,
411,
263,
3086,
537,
411,
9728,
29892,
322,
385,
382,
2608,
1061,
310,
17164,
20444,
29892,
322,
385,
382,
2608,
630,
411,
29871,
29896,
29906,
29953,
29896,
29892,
13034,
29871,
29896,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
10513,
272,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29955,
29929,
29955,
29946,
29946,
29918,
29896,
5754,
376,
27325,
537,
29908,
306,
5265,
6059,
14210,
456,
273,
29001,
5300,
376,
29923,
2608,
1061,
29908,
306,
5265,
6059,
14210,
25006,
29995,
440,
29001,
5300,
376,
29923,
2608,
630,
29908,
306,
5265,
6059,
14210,
29896,
29906,
29953,
29896,
24163,
7099,
1096,
29995,
29896,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
10513,
272,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29955,
29929,
29955,
29946,
29946,
29918,
29896,
5754,
376,
27325,
537,
29908,
306,
5265,
6059,
14210,
456,
273,
29001,
5300,
376,
29923,
2608,
1061,
29908,
306,
5265,
6059,
14210,
25006,
29995,
440,
29001,
5300,
376,
29923,
2608,
630,
29908,
306,
5265,
6059,
14210,
29896,
29906,
29953,
29896,
24163,
7099,
1096,
29995,
29896,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11963536_11 (
"Location Attendance" text,
Team text,
Game numeric,
"High points" text,
Series text,
Score text,
"High rebounds" text,
"High assists" text,
Date text
);
CREATE TABLE table_2_12079744_1 (
Elector text,
Elevator text,
Elevated text,
Faction text,
Nationality text,
"Order and Title" text
);
CREATE TABLE table_1_11677760_31 (
Player text,
"NBA Draft" text,
College text,
School text,
Height text,
Hometown text
);
CREATE TABLE table_1_11793221_2 (
Unit text,
Missing text,
Wounded text,
Complement text,
Commander text,
Killed text
);
CREATE TABLE table_1_10021158_3 (
"Cuts made*" numeric,
"Money list rank" text,
"Scoring average" text,
"2nd" numeric,
Year numeric,
"Scoring rank" text,
Wins numeric,
"Top 10s" numeric,
"Earnings ($)" numeric,
"Best finish" text,
"Tournaments played" numeric
);
CREATE TABLE table_1_10120207_8 (
Season numeric,
"Season premiere" text,
Rank text,
"TV season" text,
"Viewers (millions)" text,
"Timeslot ( ET )" text,
"Season finale" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?`
```sql
| SELECT Elector FROM table_2_12079744_1 WHERE "Nationality" ILIKE '%roman%' AND "Elevator" ILIKE '%urban%iv%' AND "Elevated" ILIKE '%1261,%december%17%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
797,
607,
12720,
338,
922,
273,
29915,
29879,
3815,
1754,
701,
310,
7365,
728,
13707,
402,
20144,
29899,
29924,
332,
21155,
322,
13423,
830,
29872,
1960,
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,
29906,
29929,
29906,
29906,
29906,
29900,
29918,
29941,
313,
13,
12,
29908,
6730,
12672,
29908,
1426,
29892,
13,
12,
4421,
2361,
1426,
29892,
13,
12,
29908,
2008,
550,
3815,
29908,
1426,
29892,
13,
12,
29908,
29928,
5989,
3815,
29908,
1426,
29892,
13,
12,
29923,
12907,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29900,
29953,
29945,
29918,
29906,
29947,
313,
13,
12,
29908,
3373,
29914,
6767,
29908,
1426,
29892,
13,
12,
8514,
287,
16985,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29908,
8897,
8905,
29908,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
16382,
342,
16985,
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,
797,
607,
12720,
338,
922,
273,
29915,
29879,
3815,
1754,
701,
310,
7365,
728,
13707,
402,
20144,
29899,
29924,
332,
21155,
322,
13423,
830,
29872,
1960,
29973,
29952,
13,
28956,
2850,
13,
5097,
382,
12907,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29906,
29929,
29906,
29906,
29906,
29900,
29918,
29941,
5754,
376,
2008,
550,
3815,
29908,
306,
5265,
6059,
14210,
29968,
29878,
728,
13707,
29995,
29954,
20144,
29899,
29924,
332,
21155,
29995,
392,
29995,
29963,
293,
29995,
1123,
29872,
1960,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
382,
12907,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29906,
29929,
29906,
29906,
29906,
29900,
29918,
29941,
5754,
376,
2008,
550,
3815,
29908,
306,
5265,
6059,
14210,
29968,
29878,
728,
13707,
29995,
29954,
20144,
29899,
29924,
332,
21155,
29995,
392,
29995,
29963,
293,
29995,
1123,
29872,
1960,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_23292220_3 (
"First broadcast" text,
Scores text,
"Seans team" text,
"Daves team" text,
Episode text
);
CREATE TABLE table_1_1161065_28 (
"Up/Down" text,
Hosted numeric,
Lowest numeric,
"Last Year" text,
Total numeric,
Average numeric,
Highest numeric,
Venue text
);
```
### Answer
Here is the SQL query that answers the question:
`In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves?`
```sql
| SELECT Episode FROM table_1_23292220_3 WHERE "Seans team" ILIKE '%Krishnan%Guru-Murthy%and%Vic%Reeves%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29871,
29906,
29900,
29900,
29929,
756,
4595,
2243,
314,
14743,
29879,
310,
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,
29896,
29918,
29896,
29906,
29900,
29906,
29955,
29941,
29953,
29946,
29918,
29896,
313,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
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,
29896,
29953,
29906,
29906,
29945,
29953,
29906,
29918,
29896,
313,
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,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29955,
29946,
29953,
29947,
29947,
29929,
29918,
29896,
29896,
313,
13,
12,
29908,
29906,
29900,
29900,
29947,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29955,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29945,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29896,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29953,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29946,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
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,
29871,
29906,
29900,
29900,
29929,
756,
4595,
2243,
314,
14743,
29879,
310,
29871,
29906,
29900,
29900,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
29871,
29906,
29900,
29900,
29929,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29955,
29946,
29953,
29947,
29947,
29929,
29918,
29896,
29896,
5754,
376,
29906,
29900,
29900,
29947,
29908,
306,
5265,
6059,
14210,
27857,
29995,
2536,
314,
29995,
29873,
2905,
20060,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29929,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29955,
29946,
29953,
29947,
29947,
29929,
29918,
29896,
29896,
5754,
376,
29906,
29900,
29900,
29947,
29908,
306,
5265,
6059,
14210,
27857,
29995,
2536,
314,
29995,
29873,
2905,
20060,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What 2009 has grand slam tournaments of 2008?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12027364_1 (
"Womens singles" text,
Year numeric,
"Mixed doubles" text,
"Womens doubles" text,
"Mens doubles" text,
"Mens singles" text
);
CREATE TABLE table_1_11622562_1 (
"Purse( $ )" numeric,
Date text,
"1st Prize( $ )" numeric,
Score text,
Winner text,
Location text
);
CREATE TABLE table_2_15746889_11 (
"2008" text,
Tournament text,
"2007" text,
"2005" text,
"2011" text,
"2009" text,
"2006" text,
"2004" text,
"2010" text
);
```
### Answer
Here is the SQL query that answers the question:
`What 2009 has grand slam tournaments of 2008?`
```sql
| SELECT 2009 FROM table_2_15746889_11 WHERE "2008" ILIKE '%grand%slam%tournaments%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2407,
310,
278,
3748,
373,
4723,
29871,
29896,
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,
29906,
29906,
29953,
29906,
29896,
29947,
29906,
29918,
29906,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
29911,
277,
793,
1426,
29892,
13,
12,
3206,
11259,
16985,
29892,
13,
12,
1170,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29955,
29896,
29947,
29929,
29955,
29918,
29896,
313,
13,
12,
29908,
3981,
3793,
271,
457,
310,
18574,
2592,
29908,
1426,
29892,
13,
12,
29908,
4074,
1727,
1949,
4689,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
3981,
3793,
271,
457,
310,
278,
7861,
457,
29908,
1426,
29892,
13,
12,
29908,
4074,
1727,
1949,
9698,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29953,
29929,
29929,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
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,
29908,
3782,
1213,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29359,
29873,
4539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29946,
29941,
29896,
29929,
29918,
29896,
313,
13,
12,
29928,
28778,
1426,
29892,
13,
12,
29908,
29928,
749,
29914,
21453,
29908,
1426,
29892,
13,
12,
18420,
1171,
1426,
29892,
13,
12,
29911,
5271,
5079,
1426,
29892,
13,
12,
17241,
6115,
1426,
29892,
13,
12,
11536,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29946,
29906,
29946,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
2481,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
3591,
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,
2407,
310,
278,
3748,
373,
4723,
29871,
29896,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29946,
29906,
29946,
29906,
29941,
29918,
29896,
5754,
376,
22606,
29908,
353,
525,
29896,
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,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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,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29946,
29906,
29946,
29906,
29941,
29918,
29896,
5754,
376,
22606,
29908,
353,
525,
29896,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the record of the game on week 13?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12262182_2 (
Opponent text,
Number numeric,
Titles text,
Defenses numeric,
Name text
);
CREATE TABLE table_1_11071897_1 (
"Count Palatine of Saxony" text,
"Interregnum began" text,
Duration text,
"Count Palatine of the Rhine" text,
"Interregnum ended" text
);
CREATE TABLE table_1_12369913_1 (
"Year (Ceremony)" text,
"Original title" text,
Director text,
"Film title used in nomination" text
);
CREATE TABLE table_1_10470082_6 (
"US air date" text,
"No." numeric,
Title text,
Writer text,
Villains text,
"#" numeric,
Storyteller text
);
CREATE TABLE table_1_1014319_1 (
Dixon text,
"Dance/song" text,
Goodman text,
Tonioli text,
Horwood text,
Total text
);
CREATE TABLE table_2_14942423_1 (
"Game site" text,
Week numeric,
Opponent text,
"Time ( ET )" text,
Record text,
Date text,
Result text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the record of the game on week 13?`
```sql
| SELECT Record FROM table_2_14942423_1 WHERE "Week" = '13' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
399,
3993,
29892,
746,
278,
17015,
338,
315,
2409,
1100,
29892,
12314,
29892,
322,
746,
278,
4712,
338,
3979,
29871,
29896,
29955,
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,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29947,
29955,
29941,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29896,
29941,
29947,
29900,
29945,
29918,
29906,
313,
13,
12,
19204,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29956,
3993,
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,
399,
3993,
29892,
746,
278,
17015,
338,
315,
2409,
1100,
29892,
12314,
29892,
322,
746,
278,
4712,
338,
3979,
29871,
29896,
29955,
29892,
29871,
29906,
29900,
29896,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
399,
3993,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29896,
29941,
29947,
29900,
29945,
29918,
29906,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29883,
2409,
1100,
24163,
1557,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
1096,
29995,
29896,
29955,
24163,
29906,
29900,
29896,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
399,
3993,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29896,
29941,
29947,
29900,
29945,
29918,
29906,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29883,
2409,
1100,
24163,
1557,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
1096,
29995,
29896,
29955,
24163,
29906,
29900,
29896,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11621873_1 (
Score text,
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Tournament text
);
CREATE TABLE table_2_13113805_2 (
Series text,
Location text,
Score text,
Winner text,
Date text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012?`
```sql
| SELECT Winner FROM table_2_13113805_2 WHERE "Location" ILIKE '%clemson,%sc%' AND "Date" ILIKE '%november%17,%2012%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
4078,
746,
278,
6410,
471,
269,
3656,
4425,
313,
29906,
29994,
29906,
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,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29896,
313,
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,
6508,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29940,
860,
978,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29945,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29906,
29900,
29900,
29947,
29953,
29918,
29896,
313,
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,
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,
7030,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29941,
29946,
29947,
29896,
29918,
29945,
313,
13,
12,
11371,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29931,
2209,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29941,
29941,
29947,
29955,
29918,
29896,
313,
13,
12,
29908,
12883,
29879,
7412,
287,
29908,
1426,
29892,
13,
12,
29908,
11536,
399,
29899,
29931,
29908,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
399,
29899,
29931,
29908,
1426,
29892,
13,
12,
29908,
10873,
793,
399,
29899,
29931,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29941,
29953,
29955,
29918,
29906,
313,
13,
12,
29908,
15263,
8271,
29908,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
29937,
310,
21669,
29908,
16985,
29892,
13,
12,
29908,
29995,
310,
5972,
11719,
29908,
1426,
29892,
13,
12,
29908,
29937,
310,
22091,
2113,
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,
29915,
29879,
278,
4078,
746,
278,
6410,
471,
269,
3656,
4425,
313,
29906,
29994,
29906,
6877,
29952,
13,
28956,
2850,
13,
5097,
16913,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29941,
29946,
29947,
29896,
29918,
29945,
5754,
376,
29931,
2209,
29908,
306,
5265,
6059,
14210,
29879,
3656,
4425,
29995,
29898,
29906,
29994,
29906,
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,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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,
5097,
16913,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29941,
29946,
29947,
29896,
29918,
29945,
5754,
376,
29931,
2209,
29908,
306,
5265,
6059,
14210,
29879,
3656,
4425,
29995,
29898,
29906,
29994,
29906,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the save when the loss was santiago (2–2)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11658094_1 (
Enrollment numeric,
Joined text,
Institution text,
Type text,
Location text,
Founded numeric,
Nickname text
);
CREATE TABLE table_1_11677100_15 (
Player text,
"MLB Draft" text,
Position text,
Hometown text,
School text
);
CREATE TABLE table_1_11820086_1 (
"Directed by" text,
"Original air date" text,
"U.S. viewers (millions)" text,
"No. in series" numeric,
"Written by" text,
"No. in season" numeric,
Title text,
"Production code" text
);
CREATE TABLE table_2_11633481_5 (
Save text,
Attendance numeric,
Date text,
Loss text,
Opponent text,
Score text,
Record text
);
CREATE TABLE table_1_10023387_1 (
"Years Played" text,
"Total W-L" text,
"Doubles W-L" text,
"Singles W-L" text
);
CREATE TABLE table_1_106367_2 (
"General election" numeric,
Result text,
"# of candidates" numeric,
"% of popular vote" text,
"# of seats won" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What's the save when the loss was santiago (2–2)?`
```sql
| SELECT Save FROM table_2_11633481_5 WHERE "Loss" ILIKE '%santiago%(2–2)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
4989,
2004,
8396,
279,
29915,
29879,
19604,
5839,
1353,
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,
29906,
29941,
29941,
29947,
29955,
29918,
29896,
313,
13,
12,
29908,
29928,
283,
7586,
399,
29899,
29931,
29908,
1426,
29892,
13,
12,
29908,
11536,
399,
29899,
29931,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
7412,
287,
29908,
1426,
29892,
13,
12,
29908,
10873,
793,
399,
29899,
29931,
29908,
1426,
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,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29934,
29881,
16985,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29896,
29946,
29955,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29896,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29906,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29947,
29945,
29900,
29929,
29896,
29906,
29918,
29941,
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,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29955,
313,
13,
12,
10507,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29359,
29873,
4539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29896,
313,
13,
12,
29908,
29954,
2124,
323,
3409,
482,
29908,
16985,
29892,
13,
12,
29908,
1542,
310,
478,
25583,
29908,
1426,
29892,
13,
12,
29908,
5044,
287,
2669,
29908,
1426,
29892,
13,
12,
29908,
10399,
287,
2669,
29908,
1426,
29892,
13,
12,
29908,
2713,
4512,
1024,
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,
4989,
2004,
8396,
279,
29915,
29879,
19604,
5839,
1353,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
29925,
860,
396,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29945,
29900,
29929,
29896,
29906,
29918,
29941,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29954,
336,
2004,
29995,
29933,
265,
279,
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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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,
5097,
341,
1177,
703,
29925,
860,
396,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29945,
29900,
29929,
29896,
29906,
29918,
29941,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29954,
336,
2004,
29995,
29933,
265,
279,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Graeme Bonar's lowest pick number?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10023387_1 (
"Doubles W-L" text,
"Total W-L" text,
"Years Played" text,
"Singles W-L" text
);
CREATE TABLE table_1_10527215_3 (
"Winning team" text,
"Winning driver" text,
"Fastest Lap" text,
"Pole Position" text,
Name text,
Rd numeric,
Report text
);
CREATE TABLE table_1_11214772_1 (
"Semi-Finalist #1" text,
Location text,
"Runner-Up" text,
Score text,
Champion text,
Year text,
"Semi-Finalist #2" text
);
CREATE TABLE table_1_2850912_3 (
"College/junior/club team" text,
"NHL team" text,
Nationality text,
Position text,
Player text,
"Pick #" numeric
);
CREATE TABLE table_1_10470082_7 (
Writer text,
Villains text,
"US air date" text,
Title text,
Director text,
"#" numeric,
"No." numeric,
Storyteller text
);
CREATE TABLE table_1_11662133_1 (
"Gross Tonnage" numeric,
"Type of Vessel" text,
"Ended service" text,
"Entered service" text,
"Ships name" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Graeme Bonar's lowest pick number?`
```sql
| SELECT MIN("Pick #") FROM table_1_2850912_3 WHERE "Player" ILIKE '%Graeme%Bonar%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
526,
278,
21614,
363,
278,
29871,
29955,
386,
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,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29906,
313,
13,
12,
1542,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29908,
29924,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
13853,
978,
29908,
1426,
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,
29934,
618,
16985,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
7011,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29906,
29900,
29946,
29906,
29953,
29918,
29896,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27345,
21425,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29955,
29953,
29941,
29896,
29900,
29900,
29906,
29918,
29896,
313,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
29934,
3302,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29906,
29896,
29947,
29955,
29900,
29918,
29941,
29906,
313,
13,
12,
20779,
1426,
29892,
13,
12,
9652,
267,
1426,
29892,
13,
12,
29853,
1426,
29892,
13,
12,
8120,
1338,
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,
21614,
363,
278,
29871,
29955,
386,
2602,
29973,
29952,
13,
28956,
2850,
13,
5097,
399,
1144,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29953,
29941,
29896,
29900,
29900,
29906,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29955,
386,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
399,
1144,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29953,
29941,
29896,
29900,
29900,
29906,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29955,
386,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What are the wins for the 7th position?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10577579_2 (
Type text,
Enrollment numeric,
Founded numeric,
Institution text,
"Mens Nickname" text,
Joined text,
Location text,
"Womens Nickname" text
);
CREATE TABLE table_1_10966926_2 (
Weight numeric,
Round numeric,
"Player name" text,
College text,
Choice numeric,
Height text
);
CREATE TABLE table_1_10420426_1 (
Series text,
Poles numeric,
Races numeric,
Position text,
Podiums numeric
);
CREATE TABLE table_1_27631002_1 (
Season numeric,
"F/Laps" numeric,
Points text,
Poles numeric,
Wins numeric,
Team text,
Position text,
Series text,
Podiums numeric,
Races numeric
);
CREATE TABLE table_1_12321870_32 (
Country text,
Matches text,
Period text,
Goals text
);
```
### Answer
Here is the SQL query that answers the question:
`What are the wins for the 7th position?`
```sql
| SELECT Wins FROM table_1_27631002_1 WHERE "Position" ILIKE '%7th%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1274,
1617,
962,
363,
278,
4223,
1024,
14299,
10643,
322,
5722,
5996,
832,
12356,
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,
29896,
29896,
313,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
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,
15121,
3885,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29906,
29947,
29945,
29946,
29941,
29918,
29941,
313,
13,
12,
17734,
1076,
19409,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
6212,
21642,
29908,
16985,
29892,
13,
12,
29908,
29907,
786,
9550,
2539,
29908,
1426,
29892,
13,
12,
29931,
14556,
19409,
1426,
29892,
13,
12,
2008,
1658,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29946,
29946,
29906,
29946,
29896,
29918,
29906,
313,
13,
12,
10644,
1617,
962,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
1170,
297,
3792,
388,
29908,
1426,
29892,
13,
12,
28077,
1426,
29892,
13,
12,
29908,
1170,
297,
4223,
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,
1274,
1617,
962,
363,
278,
4223,
1024,
14299,
10643,
322,
5722,
5996,
832,
12356,
29973,
29952,
13,
28956,
2850,
13,
5097,
7255,
1617,
962,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29946,
29946,
29906,
29946,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
7255,
1617,
962,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29946,
29946,
29906,
29946,
29896,
29918,
29906,
5754,
376,
1170,
297,
4223,
29908,
306,
5265,
6059,
14210,
15459,
5063,
29995,
21895,
29995,
392,
29995,
21695,
5996,
29995,
2611,
12356,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the acronym for the English name Northern management and technological institute?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11960944_11 (
Team text,
"High points" text,
Date text,
Score text,
Game numeric,
Series text,
"Location Attendance" text,
"High rebounds" text,
"High assists" text
);
CREATE TABLE table_1_11960944_6 (
"High rebounds" text,
Record text,
Score text,
"Location Attendance" text,
Date text
);
CREATE TABLE table_1_12028543_3 (
WinningTeam text,
"Cup Final Attendance" numeric,
"Cup FinalDate" text,
LosingTeam text,
Season text
);
CREATE TABLE table_2_18144241_2 (
Acronym text,
Location text,
"Name in Malay" text,
Foundation text,
"Name in English" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the acronym for the English name Northern management and technological institute?`
```sql
| SELECT Acronym FROM table_2_18144241_2 WHERE "Name in English" ILIKE '%northern%management%and%technological%institute%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3047,
278,
4665,
297,
29871,
29906,
29900,
29900,
29945,
310,
29871,
29945,
29955,
29906,
29892,
825,
338,
278,
4642,
1024,
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,
26382,
16985,
29892,
13,
12,
29908,
18213,
29889,
5864,
29908,
16985,
29892,
13,
12,
29908,
3217,
29871,
29906,
448,
331,
2333,
29908,
1426,
29892,
13,
12,
29923,
781,
2200,
537,
16985,
29892,
13,
12,
12415,
2028,
1426,
29892,
13,
12,
23665,
428,
16985,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29947,
29953,
29900,
29896,
29945,
29918,
29955,
313,
13,
12,
29908,
12883,
29898,
29879,
5513,
1426,
29892,
13,
12,
15790,
29879,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
17734,
29899,
29931,
2209,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29896,
29941,
29900,
29906,
29918,
29896,
313,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29900,
29945,
5513,
16985,
29892,
13,
12,
29908,
2500,
261,
4408,
29908,
1426,
29892,
13,
12,
29908,
29928,
575,
537,
12407,
847,
447,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
310,
18481,
29908,
16985,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29908,
13799,
313,
447,
1723,
29908,
16985,
29892,
13,
12,
29908,
29940,
29878,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29896,
29929,
29900,
29953,
29918,
29896,
313,
13,
12,
29908,
2008,
271,
310,
390,
24494,
29908,
1426,
29892,
13,
12,
29908,
22677,
18320,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
7400,
29871,
29906,
29900,
29896,
29896,
20121,
29908,
16985,
29892,
13,
12,
29908,
29928,
575,
537,
313,
7323,
29889,
639,
2383,
29906,
5513,
1426,
29892,
13,
12,
29908,
4597,
1848,
5127,
12813,
2877,
313,
10363,
29924,
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,
3047,
278,
4665,
297,
29871,
29906,
29900,
29900,
29945,
310,
29871,
29945,
29955,
29906,
29892,
825,
338,
278,
4642,
1024,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
2500,
261,
4408,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29941,
29900,
29906,
29918,
29896,
5754,
376,
12310,
2785,
313,
29906,
29900,
29900,
29945,
5513,
353,
525,
29945,
29955,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2500,
261,
4408,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29941,
29900,
29906,
29918,
29896,
5754,
376,
12310,
2785,
313,
29906,
29900,
29900,
29945,
5513,
353,
525,
29945,
29955,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`With the population in 2005 of 572, what is the former name?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10921309_1 (
Export numeric,
"Prim. energy" numeric,
"CO 2 -emission" text,
Electricity numeric,
Capita text,
Production numeric,
"unnamed_0" numeric
);
CREATE TABLE table_1_12086015_7 (
"Year(s)" text,
Finals numeric,
Nationality text,
"Win-Loss" text,
Player text
);
CREATE TABLE table_1_21302_1 (
"Population (2005)" numeric,
"Former Name" text,
"Density persons / ha" text,
"No. of villages" numeric,
District text,
"Area ( ha )" numeric,
"Nr." numeric
);
CREATE TABLE table_1_1011906_1 (
"Seat of RCM" text,
"Land Area" text,
"Population Canada 2011 Census" numeric,
"Density (pop. per km2)" text,
"Regional County Municipality (RCM)" text
);
```
### Answer
Here is the SQL query that answers the question:
`With the population in 2005 of 572, what is the former name?`
```sql
| SELECT "Former Name" FROM table_1_21302_1 WHERE "Population (2005)" = '572' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1353,
9904,
297,
515,
363,
278,
7365,
434,
17344,
8502,
4103,
3395,
26748,
943,
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,
29953,
29955,
29900,
29947,
29896,
29900,
29945,
29918,
29906,
313,
13,
12,
29908,
1168,
643,
1490,
297,
3077,
3077,
1810,
375,
29908,
1426,
29892,
13,
12,
29908,
29928,
11881,
14662,
10343,
29908,
1426,
29892,
13,
12,
1762,
16985,
29892,
13,
12,
4591,
16985,
29892,
13,
12,
24458,
16985,
29892,
13,
12,
29908,
14609,
3439,
29908,
1426,
29892,
13,
12,
20529,
1426,
29892,
13,
12,
22034,
26841,
16985,
29892,
13,
12,
25231,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29953,
29955,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29953,
313,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
8003,
1426,
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,
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,
9904,
297,
515,
363,
278,
7365,
434,
17344,
8502,
4103,
3395,
26748,
943,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
21482,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29955,
29900,
29947,
29896,
29900,
29945,
29918,
29906,
5754,
376,
29928,
11881,
14662,
10343,
29908,
306,
5265,
6059,
14210,
29968,
29878,
434,
17344,
29995,
4561,
29995,
3286,
3395,
29995,
17028,
943,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
21482,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29955,
29900,
29947,
29896,
29900,
29945,
29918,
29906,
5754,
376,
29928,
11881,
14662,
10343,
29908,
306,
5265,
6059,
14210,
29968,
29878,
434,
17344,
29995,
4561,
29995,
3286,
3395,
29995,
17028,
943,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the number listed in from for the Krueppel Like Transcription Factors?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_26708105_2 (
"Conserved in Mus Musculus" text,
"Detailed Family Information" text,
To numeric,
From numeric,
Anchor numeric,
"Matrix Sim" text,
Sequence text,
Occurrence numeric,
Orientation text
);
CREATE TABLE table_1_1140067_2 (
"Fastest Lap" text,
Rnd numeric,
Date text,
Race text,
Location text,
"Race Winner" text,
Constructor text,
Report text,
"Pole Position" text
);
CREATE TABLE table_1_11734041_6 (
"No.(s)" text,
"Height in Ft." text,
Position text,
Player text,
"School/Club Team/Country" text,
"Years for Rockets" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the number listed in from for the Krueppel Like Transcription Factors?`
```sql
| SELECT MIN(FROM) FROM table_1_26708105_2 WHERE "Detailed Family Information" ILIKE '%Krueppel%like%transcription%factors%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
4665,
9027,
988,
4665,
1273,
338,
29871,
29896,
29889,
29896,
29995,
363,
25007,
557,
423,
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,
29900,
29896,
29953,
29896,
29953,
29918,
29946,
313,
13,
12,
29908,
8179,
8561,
29908,
1426,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
5709,
1426,
29892,
13,
12,
2369,
509,
424,
1426,
29892,
13,
12,
4763,
16985,
29892,
13,
12,
29908,
8179,
1939,
1213,
16985,
29892,
13,
12,
12881,
728,
16985,
29892,
13,
12,
12376,
1426,
29892,
13,
12,
29908,
8179,
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,
29906,
299,
10769,
7348,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29896,
303,
4847,
21614,
29908,
1426,
29892,
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,
310,
263,
4216,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29953,
29947,
29906,
29946,
29918,
29896,
313,
13,
12,
29908,
12310,
29889,
9027,
11647,
29914,
8848,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
297,
14746,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
1273,
310,
19007,
29908,
1426,
29892,
13,
12,
29908,
13404,
4306,
29908,
1426,
29892,
13,
12,
29908,
13799,
2383,
29871,
29906,
29908,
16985,
29892,
13,
12,
29908,
13799,
1273,
310,
19007,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29906,
29945,
29945,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29929,
29941,
29906,
29906,
29896,
29918,
29906,
313,
13,
12,
18552,
292,
1426,
29892,
13,
12,
5261,
3825,
1426,
29892,
13,
12,
1523,
2037,
1426,
29892,
13,
12,
8325,
1426,
29892,
13,
12,
29968,
24455,
1426,
29892,
13,
12,
29956,
7261,
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,
4665,
9027,
988,
4665,
1273,
338,
29871,
29896,
29889,
29896,
29995,
363,
25007,
557,
423,
29952,
13,
28956,
2850,
13,
5097,
376,
12310,
29889,
9027,
11647,
29914,
8848,
29871,
29906,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29953,
29947,
29906,
29946,
29918,
29896,
5754,
376,
12310,
2785,
1273,
310,
19007,
29908,
306,
5265,
6059,
14210,
29896,
29889,
29896,
7686,
29915,
5300,
376,
13404,
4306,
29908,
306,
5265,
6059,
14210,
29903,
5590,
557,
423,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
12310,
29889,
9027,
11647,
29914,
8848,
29871,
29906,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29953,
29947,
29906,
29946,
29918,
29896,
5754,
376,
12310,
2785,
1273,
310,
19007,
29908,
306,
5265,
6059,
14210,
29896,
29889,
29896,
7686,
29915,
5300,
376,
13404,
4306,
29908,
306,
5265,
6059,
14210,
29903,
5590,
557,
423,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the population density where population % is 1.1% for slovakia`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12001616_4 (
"Car Make" text,
Laps numeric,
Status text,
Entrant text,
Start numeric,
"Car No." numeric,
Finish numeric,
Driver text,
"Car Name" text
);
CREATE TABLE table_1_10664957_2 (
"2nd players choice" text,
"Probability 1st player wins" text,
"1st players choice" text,
"Probability 2nd player wins" text,
"Probability of a draw" text
);
CREATE TABLE table_1_1606824_1 (
"Pop. density People/km 2" text,
"Population in millions" text,
"Population % of EU" text,
"Member State" text,
"Area km 2" numeric,
"Area % of EU" text
);
CREATE TABLE table_1_11622255_1 (
Score text,
"1st Prize( $ )" numeric,
Tournament text,
Location text,
Date text,
"Purse( $ )" numeric,
Winner text
);
CREATE TABLE table_1_11793221_2 (
Missing text,
Commander text,
Complement text,
Unit text,
Killed text,
Wounded text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the population density where population % is 1.1% for slovakia`
```sql
| SELECT "Pop. density People/km 2" FROM table_1_1606824_1 WHERE "Population % of EU" ILIKE '%1.1%%' AND "Member State" ILIKE '%Slovakia%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1024,
310,
263,
4423,
297,
20537,
423,
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,
29896,
29900,
29900,
29918,
29896,
29945,
313,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29953,
29941,
29896,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
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,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29929,
29906,
29900,
29941,
29918,
29896,
313,
13,
12,
1542,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29956,
1008,
10809,
29908,
1426,
29892,
13,
12,
29908,
10399,
287,
2669,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
15122,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29953,
313,
13,
12,
14199,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19409,
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,
29929,
29953,
29896,
29945,
29947,
29906,
29918,
29896,
29900,
313,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19204,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29906,
29906,
29929,
29941,
29918,
29946,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
2539,
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,
278,
1024,
310,
263,
4423,
297,
20537,
423,
29973,
29952,
13,
28956,
2850,
13,
5097,
4408,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29929,
29906,
29900,
29941,
29918,
29896,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29876,
4087,
423,
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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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,
5097,
4408,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29929,
29906,
29900,
29941,
29918,
29896,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29876,
4087,
423,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the name of a location in Nigeria?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_15 (
Position text,
Player text,
Hometown text,
School text,
"MLB Draft" text
);
CREATE TABLE table_1_10718631_2 (
"No. in season" numeric,
"Directed by" text,
"No. in series" numeric,
"U.S. viewers (millions)" text,
Title text,
"Written by" text,
"Original air date" text
);
CREATE TABLE table_2_1499203_1 (
Type text,
Name text,
"Water depth" text,
"Entered service" text,
Location text,
Customer text
);
CREATE TABLE table_1_11959669_6 (
Game numeric,
Date text,
Score text,
Record text,
"Location Attendance" text,
"High assists" text,
Team text,
"High points" text,
"High rebounds" text
);
CREATE TABLE table_1_11961582_10 (
Score text,
Date text,
"Location Attendance" text,
"High rebounds" text,
Series text
);
CREATE TABLE table_1_10812293_4 (
"Location Attendance" text,
"High rebounds" text,
Date text,
Score text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the name of a location in Nigeria?`
```sql
| SELECT Name FROM table_2_1499203_1 WHERE "Location" ILIKE '%nigeria%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
29871,
29906,
29900,
29896,
29896,
363,
29871,
29906,
29900,
29896,
29900,
310,
15248,
293,
8090,
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,
29908,
29907,
336,
23379,
11719,
29908,
1426,
29892,
13,
12,
29908,
29931,
575,
11719,
29908,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
17618,
1725,
1426,
29892,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
29908,
29933,
3389,
359,
11719,
29908,
1426,
29892,
13,
12,
29908,
1433,
2435,
267,
11719,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29955,
29906,
29906,
29900,
29900,
29918,
29955,
313,
13,
12,
29911,
2905,
1166,
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,
29896,
29896,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29947,
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,
3148,
29928,
29465,
1426,
29892,
13,
12,
29908,
29896,
11652,
29465,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29906,
29945,
29953,
29906,
29929,
29918,
29906,
313,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29934,
299,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
29908,
16885,
29914,
6508,
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,
29871,
29906,
29900,
29896,
29896,
363,
29871,
29906,
29900,
29896,
29900,
310,
15248,
293,
8090,
29952,
13,
28956,
2850,
13,
5097,
29871,
29906,
29900,
29896,
29896,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29955,
29906,
29906,
29900,
29900,
29918,
29955,
5754,
376,
29906,
29900,
29896,
29900,
29908,
306,
5265,
6059,
14210,
324,
962,
16447,
29995,
29887,
1280,
29001,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29896,
29896,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29955,
29906,
29906,
29900,
29900,
29918,
29955,
5754,
376,
29906,
29900,
29896,
29900,
29908,
306,
5265,
6059,
14210,
324,
962,
16447,
29995,
29887,
1280,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the 2011 for 2010 of olympic games`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12305325_4 (
"Craigs vote" text,
"Lens vote" text,
Week numeric,
Safe text,
Eliminated text,
"Brunos vote" text,
"Arlenes vote" text
);
CREATE TABLE table_2_12472200_7 (
Tournament text,
"2007" text,
"2010" text,
"2011" text,
"2009" text,
"2008" text
);
CREATE TABLE table_1_1222653_10 (
Currency text,
Country text,
"Central bank" text,
"1 USD =" text,
"1 Euro =" text
);
CREATE TABLE table_1_10725629_2 (
"Pole position" text,
"Winning team" text,
"Race Name" text,
Rnd text,
"Winning driver" text,
Date text,
Report text,
Circuit text,
"Fastest lap" text,
"City/Location" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the 2011 for 2010 of olympic games`
```sql
| SELECT 2011 FROM table_2_12472200_7 WHERE "2010" ILIKE '%olympic%games%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
14743,
471,
5569,
1174,
29939,
29894,
391,
28877,
701,
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,
29947,
29896,
29929,
29906,
29953,
29953,
29918,
29947,
313,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
29923,
3334,
2631,
16985,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
262,
14746,
5513,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
2481,
21497,
313,
29923,
1254,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29947,
29945,
29945,
29941,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
9588,
7925,
4124,
344,
2954,
29908,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29924,
488,
2490,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
855,
4521,
14706,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29946,
29953,
29906,
29947,
29906,
29918,
29896,
29906,
313,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
1349,
1823,
15484,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
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,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
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,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29941,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
14958,
936,
17838,
322,
4823,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
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,
14743,
471,
5569,
1174,
29939,
29894,
391,
28877,
701,
29973,
29952,
13,
28956,
2850,
13,
5097,
29427,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29946,
29953,
29906,
29947,
29906,
29918,
29896,
29906,
5754,
376,
16802,
29899,
786,
29908,
306,
5265,
6059,
14210,
386,
18902,
29995,
264,
29939,
29894,
391,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29427,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29946,
29953,
29906,
29947,
29906,
29918,
29896,
29906,
5754,
376,
16802,
29899,
786,
29908,
306,
5265,
6059,
14210,
386,
18902,
29995,
264,
29939,
29894,
391,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What tournament was Thomas Enqvist runner up?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10819266_8 (
"Season finale" text,
Episodes numeric,
"TV season" text,
"Season premiere" text,
Rank text,
"Viewers (in millions)" text,
Season numeric,
"Time slot (EST)" text
);
CREATE TABLE table_1_10568553_1 (
Location text,
"Roads Intersected" text,
Notes text,
Milepost text,
County text,
"Street Names" text
);
CREATE TABLE table_2_11346282_12 (
Winner text,
Score text,
"Third Place" text,
Tournament text,
"Runner-up" text
);
CREATE TABLE table_1_11713303_2 (
"Outgoing manager" text,
"Replaced by" text,
"Date of appointment" text,
"Date of vacancy" text,
Team text,
"Manner of departure" text
);
CREATE TABLE table_1_11951237_3 (
"Written by" text,
"Season #" numeric,
"Musical guest and song" text,
"Directed by" text,
"Original air date" text,
"Production code" text,
"Series #" numeric,
Title text
);
```
### Answer
Here is the SQL query that answers the question:
`What tournament was Thomas Enqvist runner up?`
```sql
| SELECT Tournament FROM table_2_11346282_12 WHERE "Runner-up" ILIKE '%thomas%enqvist%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1472,
756,
278,
3815,
1058,
1914,
29879,
4644,
1383,
487,
28488,
11319,
16510,
26053,
1063,
6136,
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,
29947,
29941,
29906,
29900,
29941,
29918,
29896,
313,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
11184,
9548,
434,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
12415,
5946,
1426,
29892,
13,
12,
29908,
12883,
29879,
10731,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29896,
29929,
29900,
29953,
29918,
29896,
313,
13,
12,
29908,
2008,
271,
310,
390,
24494,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
7400,
29871,
29906,
29900,
29896,
29896,
20121,
29908,
16985,
29892,
13,
12,
29908,
22677,
18320,
29908,
1426,
29892,
13,
12,
29908,
4597,
1848,
5127,
12813,
2877,
313,
10363,
29924,
5513,
1426,
29892,
13,
12,
29908,
29928,
575,
537,
313,
7323,
29889,
639,
2383,
29906,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29941,
29947,
29900,
29906,
29918,
29896,
313,
13,
12,
29908,
6330,
2198,
414,
29908,
1426,
29892,
13,
12,
29908,
7717,
3611,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
18457,
29914,
13509,
29908,
1426,
29892,
13,
12,
29956,
16697,
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,
1472,
756,
278,
3815,
1058,
1914,
29879,
4644,
1383,
487,
28488,
11319,
16510,
26053,
1063,
6136,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
12883,
29879,
10731,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29941,
29906,
29900,
29941,
29918,
29896,
5754,
376,
11184,
9548,
434,
29908,
306,
5265,
6059,
14210,
29940,
2072,
29995,
2713,
487,
29995,
13634,
29995,
29907,
14056,
29995,
12877,
29995,
29909,
1267,
29874,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
12883,
29879,
10731,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29941,
29906,
29900,
29941,
29918,
29896,
5754,
376,
11184,
9548,
434,
29908,
306,
5265,
6059,
14210,
29940,
2072,
29995,
2713,
487,
29995,
13634,
29995,
29907,
14056,
29995,
12877,
29995,
29909,
1267,
29874,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How long has the team who owns North Shore Events Centre Vector Arena been active?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_283203_1 (
Founded numeric,
Location text,
"Home Venue" text,
Club text,
Capacity text,
"Years Active" text
);
CREATE TABLE table_1_1011906_1 (
"Seat of RCM" text,
"Population Canada 2011 Census" numeric,
"Land Area" text,
"Regional County Municipality (RCM)" text,
"Density (pop. per km2)" text
);
CREATE TABLE table_1_1053802_1 (
"Main presenters" text,
"Local title" text,
Network text,
"Region/country" text,
Winners text
);
```
### Answer
Here is the SQL query that answers the question:
`How long has the team who owns North Shore Events Centre Vector Arena been active?`
```sql
| SELECT "Years Active" FROM table_1_283203_1 WHERE "Home Venue" ILIKE '%North%Shore%Events%Centre%Vector%Arena%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
8341,
750,
263,
5401,
19649,
393,
471,
901,
1135,
29871,
29900,
29889,
29945,
29929,
29947,
322,
884,
750,
3109,
1135,
29871,
29945,
29941,
21614,
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,
29953,
29906,
29896,
29947,
29906,
29918,
29906,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29911,
277,
793,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
3206,
11259,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29946,
313,
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,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29941,
29947,
29945,
29929,
29945,
29918,
29896,
313,
13,
12,
29908,
29923,
854,
292,
402,
776,
29908,
1426,
29892,
13,
12,
4074,
1493,
1426,
29892,
13,
12,
10840,
326,
29658,
1426,
29892,
13,
12,
6572,
2576,
262,
4314,
1426,
29892,
13,
12,
29909,
19698,
1426,
29892,
13,
12,
2792,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29947,
29945,
29941,
29953,
29953,
29918,
29941,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
12881,
728,
1426,
29892,
13,
12,
1168,
1659,
1426,
29892,
13,
12,
29931,
2209,
267,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
17734,
23577,
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,
8341,
750,
263,
5401,
19649,
393,
471,
901,
1135,
29871,
29900,
29889,
29945,
29929,
29947,
322,
884,
750,
3109,
1135,
29871,
29945,
29941,
21614,
29973,
29952,
13,
28956,
2850,
13,
5097,
4231,
728,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29947,
29945,
29941,
29953,
29953,
29918,
29941,
5754,
376,
17734,
23577,
1405,
525,
29900,
29889,
29945,
29929,
29947,
29915,
5300,
376,
29956,
1144,
29908,
529,
525,
29945,
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,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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,
5097,
4231,
728,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29947,
29945,
29941,
29953,
29953,
29918,
29941,
5754,
376,
17734,
23577,
1405,
525,
29900,
29889,
29945,
29929,
29947,
29915,
5300,
376,
29956,
1144,
29908,
529,
525,
29945,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12262182_2 (
Opponent text,
Titles text,
Date text,
Name text,
Result text,
Number numeric,
Defenses numeric
);
CREATE TABLE table_1_11960407_4 (
"High assists" text,
Score text,
"High rebounds" text,
"High points" text,
Team text,
Record text,
Game numeric,
"Location Attendance" text
);
CREATE TABLE table_1_12338595_1 (
"Evening Gown" text,
Interview text,
Swimsuit text,
Preliminaries text,
Average text,
State text
);
CREATE TABLE table_2_15685366_3 (
Wins numeric,
Division text,
Finish text,
Conference text,
Losses numeric,
Season text,
"Win%" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?`
```sql
| SELECT Finish FROM table_2_15685366_3 WHERE "Win%" > '0.598' AND "Wins" < '53' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29945,
3358,
1510,
988,
29589,
910,
3879,
1076,
338,
373,
472,
29871,
29955,
314,
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,
29947,
29955,
29945,
29946,
29947,
29918,
29906,
313,
13,
12,
29908,
29929,
29901,
29900,
29900,
626,
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,
29896,
29906,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29955,
29901,
29941,
29900,
626,
29908,
1426,
29892,
13,
12,
1217,
265,
1426,
29892,
13,
12,
29908,
29953,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29896,
29900,
29901,
29900,
29900,
626,
29908,
1426,
29892,
13,
12,
29908,
29896,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29941,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29947,
29901,
29900,
29900,
626,
29908,
1426,
29892,
13,
12,
29908,
29896,
29901,
29941,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29945,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29941,
29901,
29900,
29900,
26354,
29908,
1426,
29892,
13,
12,
29908,
29955,
29901,
29900,
29900,
626,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29900,
29947,
29906,
29941,
29918,
29896,
313,
13,
12,
3563,
497,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29934,
618,
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,
29871,
29945,
3358,
1510,
988,
29589,
910,
3879,
1076,
338,
373,
472,
29871,
29955,
314,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29945,
29901,
29900,
29900,
26354,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29947,
29955,
29945,
29946,
29947,
29918,
29906,
5754,
376,
29955,
29901,
29900,
29900,
626,
29908,
306,
5265,
6059,
14210,
29883,
5824,
29995,
1366,
29995,
12257,
1076,
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,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1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29945,
29901,
29900,
29900,
26354,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29947,
29955,
29945,
29946,
29947,
29918,
29906,
5754,
376,
29955,
29901,
29900,
29900,
626,
29908,
306,
5265,
6059,
14210,
29883,
5824,
29995,
1366,
29995,
12257,
1076,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the 5pm show where CBS This Morning is on at 7am?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17887548_2 (
"9:00 am" text,
"11:00 am" text,
"2:00 pm" text,
"12:30 pm" text,
"7:30 am" text,
noon text,
"6:30 pm" text,
"10:00 am" text,
"1:00 pm" text,
"3:30 pm" text,
"8:00 am" text,
"1:30 pm" text,
"5:00 pm" text,
"3:00 pm" text,
"7:00 am" text
);
CREATE TABLE table_1_1140080_2 (
Report text,
"Pole Position" text,
Date text,
Race text,
"Race Winner" text,
"Fastest Lap" text,
Location text,
Constructor text,
Rnd numeric
);
CREATE TABLE table_1_10360823_1 (
Overall numeric,
College text,
Position text,
Choice numeric,
"Player name" text,
Round numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the 5pm show where CBS This Morning is on at 7am?`
```sql
| SELECT "5:00 pm" FROM table_2_17887548_2 WHERE "7:00 am" ILIKE '%cbs%this%morning%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
2407,
746,
278,
3748,
338,
29871,
29896,
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,
29906,
29918,
29896,
29955,
29941,
29947,
29906,
29946,
29896,
29896,
29918,
29946,
313,
13,
12,
14199,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29947,
313,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29900,
29955,
29906,
29900,
29918,
29945,
313,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
29908,
29933,
23980,
22135,
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,
2407,
746,
278,
3748,
338,
29871,
29896,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29947,
29906,
29946,
29896,
29896,
29918,
29946,
5754,
376,
14199,
29908,
353,
525,
29896,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29947,
29906,
29946,
29896,
29896,
29918,
29946,
5754,
376,
14199,
29908,
353,
525,
29896,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the record when the game is 13?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17382411_4 (
Game numeric,
Date text,
Score text,
"High points" text,
"Location Attendance" text,
Record text,
Team text
);
CREATE TABLE table_1_11677100_18 (
Position text,
Player text,
Hometown text,
"MLB Draft" text,
School text
);
CREATE TABLE table_1_11950720_5 (
"Date of Birth" text,
"No." text,
"Bowling Style" text,
"First Class Team" text,
"Batting Style" text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the record when the game is 13?`
```sql
| SELECT Record FROM table_2_17382411_4 WHERE "Game" = '13' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
2931,
338,
2011,
25724,
491,
382,
18849,
476,
866,
294,
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,
29900,
29953,
29941,
29906,
29918,
29896,
313,
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,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
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,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29945,
313,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
29892,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
20647,
603,
1426,
29892,
13,
12,
20755,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29941,
313,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
1213,
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,
2931,
338,
2011,
25724,
491,
382,
18849,
476,
866,
294,
29973,
29952,
13,
28956,
2850,
13,
5097,
26871,
17923,
1001,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29945,
5754,
376,
2290,
25724,
491,
29908,
306,
5265,
6059,
14210,
295,
3173,
29995,
29895,
866,
294,
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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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
26871,
17923,
1001,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29945,
5754,
376,
2290,
25724,
491,
29908,
306,
5265,
6059,
14210,
295,
3173,
29995,
29895,
866,
294,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which character is portrayed by Elias Koteas?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1130632_1 (
"Original air date" text,
"Written by" text,
Title text,
"Featured character(s)" text,
"U.S. viewers (million)" text,
"Directed by" text,
"No. in series" numeric
);
CREATE TABLE table_2_11240028_5 (
"Portrayed by" text,
"Last appearance" text,
"First appearance" text,
Crime text,
Character text
);
CREATE TABLE table_1_10470082_3 (
Storyteller text,
Writer text,
"#" numeric,
"US air date" text,
Villains text,
Director text,
"No." numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which character is portrayed by Elias Koteas?`
```sql
| SELECT CHARACTER FROM table_2_11240028_5 WHERE "Portrayed by" ILIKE '%elias%koteas%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
4591,
988,
1258,
28186,
1939,
29889,
29871,
29896,
29945,
29929,
29906,
29929,
29914,
29941,
29900,
3978,
403,
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,
29900,
29900,
29953,
29955,
29918,
29906,
313,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29929,
29945,
29945,
29896,
29929,
29918,
29896,
313,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
14994,
3381,
1426,
29892,
13,
12,
29908,
5323,
262,
1939,
1213,
1426,
29892,
13,
12,
29908,
5323,
262,
4408,
29908,
1426,
29892,
13,
12,
23182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29947,
29946,
29906,
29918,
29896,
313,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
1542,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
4591,
988,
1258,
28186,
1939,
29889,
29871,
29896,
29945,
29929,
29906,
29929,
29914,
29941,
29900,
3978,
403,
29973,
29952,
13,
28956,
2850,
13,
5097,
22118,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29929,
29945,
29945,
29896,
29929,
29918,
29896,
5754,
376,
5323,
262,
1939,
1213,
306,
5265,
6059,
14210,
29896,
29945,
29929,
29906,
29929,
29914,
29941,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22118,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29929,
29945,
29945,
29896,
29929,
29918,
29896,
5754,
376,
5323,
262,
1939,
1213,
306,
5265,
6059,
14210,
29896,
29945,
29929,
29906,
29929,
29914,
29941,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`From where did Train No. 15929/30 originate?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140067_2 (
Constructor text,
Report text,
Location text,
"Race Winner" text,
Race text,
"Pole Position" text,
Rnd numeric,
"Fastest Lap" text,
Date text
);
CREATE TABLE table_2_12095519_1 (
Frequency text,
Destination text,
"Train No." text,
"Train Name" text,
Origin text
);
CREATE TABLE table_1_1183842_1 (
Joined numeric,
Founded numeric,
Nickname text,
Enrollment numeric,
Institution text,
Type text
);
```
### Answer
Here is the SQL query that answers the question:
`From where did Train No. 15929/30 originate?`
```sql
| SELECT Origin FROM table_2_12095519_1 WHERE "Train No." ILIKE '%15929/30%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
310,
278,
3748,
746,
18938,
11648,
313,
29955,
29897,
750,
278,
1880,
1223,
2879,
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,
29941,
29906,
29945,
29945,
29947,
29900,
29918,
29947,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
2539,
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,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29896,
29947,
29918,
29906,
313,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29946,
29946,
29955,
29953,
29918,
29947,
313,
13,
12,
22676,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
2499,
2376,
1426,
29892,
13,
12,
1123,
3901,
1426,
29892,
13,
12,
29924,
524,
482,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29928,
2829,
1308,
1426,
29892,
13,
12,
6039,
3901,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29906,
29947,
29945,
29946,
29941,
29918,
29941,
313,
13,
12,
29908,
29907,
786,
9550,
2539,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29931,
14556,
19409,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
6212,
21642,
29908,
16985,
29892,
13,
12,
17734,
1076,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29955,
29929,
29953,
29941,
29918,
29953,
313,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29929,
29945,
29945,
29896,
29929,
29918,
29896,
313,
13,
12,
29908,
5323,
262,
4408,
29908,
1426,
29892,
13,
12,
29908,
5323,
262,
1939,
1213,
1426,
29892,
13,
12,
14994,
3381,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
23182,
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,
8158,
310,
278,
3748,
746,
18938,
11648,
313,
29955,
29897,
750,
278,
1880,
1223,
2879,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29945,
29945,
29947,
29900,
29918,
29947,
5754,
376,
16382,
1223,
2879,
29908,
306,
5265,
6059,
14210,
655,
332,
625,
29995,
14043,
10909,
29995,
29898,
29955,
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,
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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,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29945,
29945,
29947,
29900,
29918,
29947,
5754,
376,
16382,
1223,
2879,
29908,
306,
5265,
6059,
14210,
655,
332,
625,
29995,
14043,
10909,
29995,
29898,
29955,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the score of the game when Maurice Williams (7) had the high assists?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17325580_8 (
"High rebounds" text,
Date text,
Team text,
Score text,
"Location Attendance" text,
Game numeric,
Record text,
"High points" text,
"High assists" text
);
CREATE TABLE table_1_1137718_2 (
"Grand Prix" text,
"Pole Position" text,
"Rd." numeric,
"Winning Driver" text,
"Fastest Lap" text,
Constructor text,
Location text,
Report text
);
CREATE TABLE table_1_12284476_8 (
Weight text,
Denomination text,
Alloy text,
Reverse text,
Mintage numeric,
Year numeric,
Series text,
Diameter text,
Obverse text
);
CREATE TABLE table_1_12028543_3 (
"Cup FinalDate" text,
Season text,
LosingTeam text,
"Cup Final Attendance" numeric,
WinningTeam text
);
CREATE TABLE table_1_11907963_6 (
Score text,
Date text,
"High rebounds" text,
"Location Attendance" text
);
CREATE TABLE table_1_12095519_1 (
"Train Name" text,
"Train No." text,
Destination text,
Frequency text,
Origin text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the score of the game when Maurice Williams (7) had the high assists?`
```sql
| SELECT Score FROM table_2_17325580_8 WHERE "High assists" ILIKE '%maurice%williams%(7)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
2479,
756,
385,
17723,
3464,
310,
29871,
29947,
29900,
29899,
29947,
29900,
29900,
29892,
322,
29871,
29900,
29889,
29947,
6440,
29879,
29914,
4308,
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,
29941,
29929,
29945,
29929,
29900,
29947,
29918,
29906,
313,
13,
12,
3195,
1426,
29892,
13,
12,
29908,
9966,
349,
861,
1379,
29908,
1426,
29892,
13,
12,
29908,
29096,
3464,
29908,
1426,
29892,
13,
12,
29908,
27535,
29914,
4308,
29908,
16985,
29892,
13,
12,
29908,
29931,
575,
11301,
7329,
29908,
16985,
29892,
13,
12,
9323,
1426,
29892,
13,
12,
12375,
918,
1426,
29892,
13,
12,
1123,
4611,
16985,
29892,
13,
12,
29908,
24001,
3464,
313,
29888,
29899,
303,
3554,
5513,
16985,
29892,
13,
12,
10486,
1426,
29892,
13,
12,
29908,
29903,
6073,
21179,
29908,
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,
29908,
3563,
497,
23868,
396,
29908,
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,
8809,
436,
2479,
756,
385,
17723,
3464,
310,
29871,
29947,
29900,
29899,
29947,
29900,
29900,
29892,
322,
29871,
29900,
29889,
29947,
6440,
29879,
29914,
4308,
29973,
29952,
13,
28956,
2850,
13,
5097,
17440,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29929,
29945,
29929,
29900,
29947,
29918,
29906,
5754,
376,
29096,
3464,
29908,
306,
5265,
6059,
14210,
29947,
29900,
29899,
29947,
29900,
29900,
29001,
5300,
376,
27535,
29914,
4308,
29908,
353,
525,
29900,
29889,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
17440,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29929,
29945,
29929,
29900,
29947,
29918,
29906,
5754,
376,
29096,
3464,
29908,
306,
5265,
6059,
14210,
29947,
29900,
29899,
29947,
29900,
29900,
29001,
5300,
376,
27535,
29914,
4308,
29908,
353,
525,
29900,
29889,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which display has an ISO range of 80-800, and 0.8 Seconds/Frame?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_16395908_2 (
Model text,
"Active Pixels" text,
"ISO range" text,
"Seconds/Frame" numeric,
"Lens conversion factor" numeric,
Display text,
Resolution text,
Released numeric,
"Dynamic range (f-stops)" numeric,
Storage text,
"Sensor Size" text
);
CREATE TABLE table_1_12165999_1 (
"AFL Team" text,
Position text,
College text,
"Overall Pick #" numeric,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`Which display has an ISO range of 80-800, and 0.8 Seconds/Frame?`
```sql
| SELECT Display FROM table_2_16395908_2 WHERE "ISO range" ILIKE '%80-800%' AND "Seconds/Frame" = '0.8' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
1741,
750,
278,
23995,
296,
310,
528,
262,
3761,
263,
21025,
322,
471,
472,
29871,
29946,
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,
29946,
29947,
29953,
29946,
29946,
29946,
29918,
29941,
313,
13,
12,
4062,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
1666,
1213,
1426,
29892,
13,
12,
29934,
618,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
2481,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29955,
29955,
29900,
29896,
29918,
29946,
313,
13,
12,
29908,
3195,
1024,
29908,
1426,
29892,
13,
12,
20001,
1426,
29892,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
29992,
29878,
3358,
5513,
1426,
29892,
13,
12,
29908,
4205,
29886,
9552,
313,
4912,
30168,
5513,
16985,
29892,
13,
12,
29908,
21472,
313,
567,
5513,
16985,
29892,
13,
12,
29908,
12412,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29946,
29900,
29941,
29941,
29918,
29896,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29928,
4154,
23868,
396,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29928,
4154,
4134,
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,
1741,
750,
278,
23995,
296,
310,
528,
262,
3761,
263,
21025,
322,
471,
472,
29871,
29946,
29901,
29945,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
6864,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29947,
29953,
29946,
29946,
29946,
29918,
29941,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
845,
262,
3761,
29995,
29874,
21025,
29001,
5300,
376,
2481,
29908,
306,
5265,
6059,
14210,
29946,
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,
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,
5097,
6864,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29947,
29953,
29946,
29946,
29946,
29918,
29941,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
845,
262,
3761,
29995,
29874,
21025,
29001,
5300,
376,
2481,
29908,
306,
5265,
6059,
14210,
29946,
29901,
29945,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which event had the opponent of shinya aoki and was at 4:56?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1486444_3 (
Method text,
Location text,
"Res." text,
Round text,
Opponent text,
Record text,
Event text,
Time text
);
CREATE TABLE table_1_1147701_4 (
"Model name" text,
Comment text,
"Torque (Nm@rpm)" text,
"Displacement (cm³)" numeric,
"Power (ps)" numeric,
"Engine code" text
);
CREATE TABLE table_1_1004033_1 (
Nationality text,
College text,
Season numeric,
"Draft Pick #" text,
Position text,
Player text,
Team text,
"Draft Class" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which event had the opponent of shinya aoki and was at 4:56?`
```sql
| SELECT Event FROM table_2_1486444_3 WHERE "Opponent" ILIKE '%shinya%aoki%' AND "Time" ILIKE '%4:56%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
1353,
310,
3652,
505,
263,
5802,
775,
310,
29871,
29896,
29889,
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,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29953,
313,
13,
12,
29940,
290,
3381,
1426,
29892,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29906,
29906,
29953,
29947,
29896,
29955,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
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,
2499,
2404,
1024,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29924,
1175,
272,
11395,
29898,
29879,
5513,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
29892,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
29892,
13,
12,
17936,
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,
6508,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
8091,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
29956,
2770,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
29908,
28154,
30010,
29879,
13853,
978,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29896,
29955,
29896,
29946,
29918,
29906,
313,
13,
12,
29908,
27648,
2708,
12965,
29908,
1426,
29892,
13,
12,
27276,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
4074,
3146,
307,
12965,
29908,
1426,
29892,
13,
12,
29908,
20325,
12965,
29908,
1426,
29892,
13,
12,
29908,
15263,
12965,
29908,
1426,
29892,
13,
12,
29908,
29911,
307,
1725,
29877,
23786,
8583,
29908,
1426,
29892,
13,
12,
29908,
3492,
865,
364,
1241,
12965,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29947,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29359,
29873,
4539,
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,
1353,
310,
3652,
505,
263,
5802,
775,
310,
29871,
29896,
29889,
29896,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
3782,
29889,
297,
3652,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29906,
29953,
29947,
29896,
29955,
29918,
29906,
5754,
376,
23665,
428,
775,
29908,
306,
5265,
6059,
14210,
29896,
29889,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
3782,
29889,
297,
3652,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29906,
29953,
29947,
29896,
29955,
29918,
29906,
5754,
376,
23665,
428,
775,
29908,
306,
5265,
6059,
14210,
29896,
29889,
29896,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many number of series have a production code of 1.11?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10236830_6 (
Nomination text,
"Actors Name" text,
Country text,
Director text,
"Film Name" text
);
CREATE TABLE table_1_2226817_2 (
"No. in series" numeric,
Title text,
"Original air date" text,
"Written by" text,
"Directed by" text,
"Production code" text
);
CREATE TABLE table_1_10416547_1 (
Duration text,
"Album name" text,
Date text,
"Major instrument(s)" text,
Lyricist text,
"Music genre/style" text,
"Track title" text,
"Lyrics theme/style" text,
Track text
);
CREATE TABLE table_1_10577579_3 (
Classification text,
Location text,
Institution text,
"Current Conference" text,
Left text,
Founded numeric,
Type text,
Enrollment numeric,
"Women’s Nickname" text,
Joined text,
"Men’s Nickname" text
);
CREATE TABLE table_1_12261714_2 (
"Mountains classification" text,
Stage text,
Winner text,
"Intergiro classification" text,
"Points classification" text,
"General classification" text,
"Trofeo Fast Team" text,
"Young rider classification" text
);
CREATE TABLE table_1_10470082_8 (
"No." numeric,
"#" numeric,
"US air date" text,
Writer text,
Director text,
Villains text,
Storyteller text
);
```
### Answer
Here is the SQL query that answers the question:
`How many number of series have a production code of 1.11?`
```sql
| SELECT "No. in series" FROM table_1_2226817_2 WHERE "Production code" ILIKE '%1.11%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
892,
297,
14333,
749,
2645,
4723,
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,
29929,
29900,
29900,
29955,
29955,
29941,
29918,
29945,
313,
13,
12,
29908,
6730,
8373,
26428,
1815,
22603,
29908,
1426,
29892,
13,
12,
29908,
11816,
292,
10554,
29908,
1426,
29892,
13,
12,
12614,
1426,
29892,
13,
12,
29908,
2539,
310,
26246,
29908,
1426,
29892,
13,
12,
4002,
647,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
29908,
29925,
7202,
5167,
29908,
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,
6344,
29909,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
23184,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
8905,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
6344,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
29908,
1426,
29892,
13,
12,
29908,
2385,
22704,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29945,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
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,
29900,
29955,
29896,
29947,
29896,
29929,
29906,
29918,
29906,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29953,
29946,
29946,
29955,
29900,
29941,
29918,
29906,
313,
13,
12,
3591,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29946,
29945,
29900,
29941,
29918,
29896,
313,
13,
12,
29908,
18767,
304,
1741,
950,
19576,
29908,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
28877,
29899,
786,
29908,
1426,
29892,
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,
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,
892,
297,
14333,
749,
2645,
4723,
29871,
29896,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
6212,
21642,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29953,
29946,
29946,
29955,
29900,
29941,
29918,
29906,
5754,
376,
22606,
29908,
353,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6212,
21642,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29953,
29946,
29946,
29955,
29900,
29941,
29918,
29906,
5754,
376,
22606,
29908,
353,
525,
29896,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many were in attendance during week 12?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11900773_5 (
"First Day Cover Cancellation" text,
"Printing Process" text,
Illustration text,
"Date of Issue" text,
Design text,
Theme text,
Denomination text,
"Paper Type" text
);
CREATE TABLE table_1_10399701_2 (
"Class AAAA" text,
"Class AAAAA" text,
"School Year" text,
"Class AAA" text,
"Class A" text,
"Class AA" text
);
CREATE TABLE table_1_11677100_15 (
Hometown text,
"MLB Draft" text,
Player text,
Position text,
School text
);
CREATE TABLE table_1_10718192_2 (
"Written by" text,
"Original air date" text,
"No. in series" numeric,
"Directed by" text,
"No. in season" numeric,
Title text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_2_16644703_2 (
Result text,
Attendance text,
Week numeric,
Date text,
Opponent text
);
CREATE TABLE table_1_12444503_1 (
"lost to eventual winner" text,
"lost to eventual runner-up" text,
Season text,
"Runner-up" text,
Winner text,
Score text
);
```
### Answer
Here is the SQL query that answers the question:
`How many were in attendance during week 12?`
```sql
| SELECT Attendance FROM table_2_16644703_2 WHERE "Week" = '12' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
11921,
278,
5172,
342,
23012,
338,
12828,
8027,
23578,
4539,
29892,
1058,
338,
278,
15613,
7156,
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,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29955,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29955,
29946,
29946,
29896,
29918,
29896,
313,
13,
12,
29908,
29954,
11191,
639,
2117,
29889,
313,
29906,
29900,
29900,
29941,
29892,
297,
25540,
5513,
16985,
29892,
13,
12,
29928,
575,
537,
1426,
29892,
13,
12,
1184,
29894,
1239,
1426,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
16985,
29892,
13,
12,
29908,
29954,
11191,
313,
29906,
29900,
29900,
29941,
29892,
349,
7024,
297,
2316,
29889,
25540,
1723,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29900,
29946,
12678,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29906,
29953,
29955,
29953,
29900,
29955,
29918,
29906,
313,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
618,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
11921,
278,
5172,
342,
23012,
338,
12828,
8027,
23578,
4539,
29892,
1058,
338,
278,
15613,
7156,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
17734,
1076,
26391,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29906,
29953,
29955,
29953,
29900,
29955,
29918,
29906,
5754,
376,
29943,
579,
342,
20298,
29908,
306,
5265,
6059,
14210,
29924,
9345,
29995,
29934,
1698,
23578,
4539,
29001,
2
] | [
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,
5097,
376,
17734,
1076,
26391,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29906,
29953,
29955,
29953,
29900,
29955,
29918,
29906,
5754,
376,
29943,
579,
342,
20298,
29908,
306,
5265,
6059,
14210,
29924,
9345,
29995,
29934,
1698,
23578,
4539,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Where the fastest lap is Mike Rockenfeller, who is the winning driver?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11734041_17 (
"School/Club Team/Country" text,
Position text,
Player text,
"Height in Ft." text,
"Years for Rockets" text,
"No.(s)" numeric
);
CREATE TABLE table_1_1067441_1 (
"GDP per cap. (2003, in €)" numeric,
Density text,
Province text,
"Area (km²)" numeric,
"GDP (2003, PPS in mil. € )" numeric,
"Population (2004 estimate)" numeric
);
CREATE TABLE table_1_26267607_2 (
"Winning Driver" text,
"Winning Team" text,
"Pole Position" text,
Round text,
Date text,
"Fastest Lap" text,
Circuit text
);
```
### Answer
Here is the SQL query that answers the question:
`Where the fastest lap is Mike Rockenfeller, who is the winning driver?`
```sql
| SELECT "Winning Driver" FROM table_1_26267607_2 WHERE "Fastest Lap" ILIKE '%Mike%Rockenfeller%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
278,
23995,
296,
746,
278,
1121,
471,
281,
29906,
29946,
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,
29896,
29896,
29896,
29955,
29941,
29947,
29906,
29955,
29918,
29896,
313,
13,
12,
29908,
24636,
3611,
29908,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
15666,
557,
16985,
29892,
13,
12,
12881,
744,
16985,
29892,
13,
12,
29908,
29950,
29968,
1776,
414,
29908,
1426,
29892,
13,
12,
29925,
1745,
10883,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
29908,
1451,
8233,
3611,
29908,
1426,
13,
416,
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,
29903,
1022,
284,
3309,
29908,
1426,
29892,
13,
12,
29908,
29903,
1022,
284,
2920,
29908,
1426,
29892,
13,
12,
29908,
29925,
26310,
2920,
29908,
1426,
29892,
13,
12,
29908,
29925,
26310,
3309,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29941,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29946,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29941,
29906,
29896,
29896,
29945,
29918,
29896,
313,
13,
12,
2539,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
29908,
29949,
407,
265,
296,
29937,
29908,
1426,
29892,
13,
12,
17033,
1426,
29892,
13,
12,
29908,
29934,
804,
396,
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,
471,
278,
23995,
296,
746,
278,
1121,
471,
281,
29906,
29946,
29899,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
29937,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29941,
29906,
29896,
29896,
29945,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29893,
29906,
29946,
29899,
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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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,
5097,
438,
407,
265,
296,
29937,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29941,
29906,
29896,
29896,
29945,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29893,
29906,
29946,
29899,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was the opponent when the result was w24-7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11173827_1 (
"English title" text,
Rank numeric,
Peak numeric,
Finale numeric,
"HK viewers" text,
Premiere numeric,
Average numeric,
"Chinese title" text
);
CREATE TABLE table_1_10477224_1 (
Species text,
"Sepal length" text,
"Sepal width" text,
"Petal width" text,
"Petal length" text
);
CREATE TABLE table_1_10470082_3 (
"#" numeric,
"No." numeric,
Writer text,
Storyteller text,
Villains text,
"US air date" text,
Director text,
Title text
);
CREATE TABLE table_1_11545282_4 (
"School/Club Team" text,
Player text,
Nationality text,
"Years for Jazz" text,
Position text
);
CREATE TABLE table_2_17432115_1 (
Date text,
Result text,
Attendance text,
"Opponent#" text,
Site text,
"Rank #" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was the opponent when the result was w24-7?`
```sql
| SELECT Opponent# FROM table_2_17432115_1 WHERE "Result" ILIKE '%w24-7%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
310,
278,
21701,
3748,
14283,
491,
901,
1135,
29871,
29896,
29947,
29892,
29953,
29941,
29900,
2305,
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,
3741,
8228,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
478,
3848,
14091,
1099,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
3122,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
6932,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29953,
29947,
29945,
29945,
29918,
29896,
313,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29924,
3930,
16985,
29892,
13,
12,
29925,
1745,
631,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29947,
29906,
29896,
29955,
29896,
29896,
29918,
29946,
313,
13,
12,
11184,
1426,
29892,
13,
12,
6185,
2459,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
20325,
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,
8158,
310,
278,
21701,
3748,
14283,
491,
901,
1135,
29871,
29896,
29947,
29892,
29953,
29941,
29900,
2305,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29947,
29906,
29896,
29955,
29896,
29896,
29918,
29946,
5754,
376,
4165,
21642,
29908,
1405,
525,
29896,
29947,
29892,
29953,
29941,
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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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,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29947,
29906,
29896,
29955,
29896,
29896,
29918,
29946,
5754,
376,
4165,
21642,
29908,
1405,
525,
29896,
29947,
29892,
29953,
29941,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the score of the Kings game attended by more than 18,630 people?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12283621_6 (
"Serbian League Belgrade" text,
"Serbian League Vojvodina" text,
"Serbian League West" text,
"Serbian League East" text,
Season text
);
CREATE TABLE table_1_10566855_1 (
"Runner-up" text,
Margin numeric,
Premier text,
Venue text
);
CREATE TABLE table_2_11821711_4 (
Home text,
Decision text,
Score text,
Visitor text,
Attendance numeric,
Record text,
Date text
);
CREATE TABLE table_1_10748727_1 (
Wins numeric,
Poles numeric,
Races numeric,
"Team Name" text,
"F/Laps" numeric,
Position text,
Podiums numeric,
Series text,
Points text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the score of the Kings game attended by more than 18,630 people?`
```sql
| SELECT Score FROM table_2_11821711_4 WHERE "Attendance" > '18,630' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4712,
310,
278,
3159,
29915,
29880,
7089,
329,
310,
29871,
29896,
29929,
29953,
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,
29896,
29955,
29945,
29941,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29896,
29947,
29899,
29946,
29929,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
1043,
414,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
29908,
1426,
29892,
13,
12,
2713,
598,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29953,
29900,
29906,
29955,
29947,
29918,
29906,
313,
13,
12,
9075,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
29907,
2124,
5920,
7089,
329,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
2928,
29915,
29880,
7089,
329,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29941,
29918,
29906,
313,
13,
12,
29934,
299,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29896,
29947,
29900,
29953,
29918,
29906,
313,
13,
12,
27276,
1426,
29892,
13,
12,
29908,
29911,
307,
1725,
29877,
23786,
8583,
29908,
1426,
29892,
13,
12,
29908,
27648,
2708,
12965,
29908,
1426,
29892,
13,
12,
29908,
15263,
12965,
29908,
1426,
29892,
13,
12,
29908,
20325,
12965,
29908,
1426,
29892,
13,
12,
29908,
3492,
865,
364,
1241,
12965,
29908,
1426,
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,
338,
278,
4712,
310,
278,
3159,
29915,
29880,
7089,
329,
310,
29871,
29896,
29929,
29953,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29953,
29900,
29906,
29955,
29947,
29918,
29906,
5754,
376,
12883,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29953,
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,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29953,
29900,
29906,
29955,
29947,
29918,
29906,
5754,
376,
12883,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29953,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Date of the Int'l Debut of 1967?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11753080_2 (
Rating text,
"18-49" text,
"#" numeric,
Episode text,
Viewers text,
"Air Date" text,
Timeslot text,
"Weekly Rank" text,
Share numeric
);
CREATE TABLE table_2_18860278_2 (
Player text,
Year text,
"Cross Code Debut" text,
Date text,
"Int'l Debut" text
);
CREATE TABLE table_1_1140073_2 (
Rnd numeric,
Report text,
"Fastest Lap" text,
Location text,
"Pole Position" text,
Constructor text,
"Race Winner" text,
Race text
);
CREATE TABLE table_1_12261806_2 (
Stage text,
"Trofeo Fast Team" text,
"Mountains classification" text,
"General classification" text,
"Points classification" text,
"Young rider classification" text,
Winner text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Date of the Int'l Debut of 1967?`
```sql
| SELECT Date FROM table_2_18860278_2 WHERE "Year" ILIKE '%1967%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
14176,
1353,
310,
21614,
491,
10215,
273,
968,
7063,
2211,
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,
29947,
29955,
29906,
29955,
29918,
29896,
313,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
29934,
3302,
16985,
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,
11536,
16985,
29892,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
29908,
29909,
386,
2810,
313,
6632,
29907,
5513,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
29943,
16750,
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,
14176,
1353,
310,
21614,
491,
10215,
273,
968,
7063,
2211,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29956,
1144,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
5754,
376,
19204,
29908,
306,
5265,
6059,
14210,
29967,
21419,
968,
29995,
2500,
2497,
29995,
28575,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29956,
1144,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
5754,
376,
19204,
29908,
306,
5265,
6059,
14210,
29967,
21419,
968,
29995,
2500,
2497,
29995,
28575,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the greatest number of wins by japanese formula three?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10748727_1 (
Poles numeric,
Season text,
Wins numeric,
"F/Laps" numeric,
Position text,
"Team Name" text,
Points text,
Series text,
Podiums numeric,
Races numeric
);
CREATE TABLE table_1_12407546_1 (
"#" numeric,
Total numeric,
Shooting text,
Riding text,
"Athlete (NOC)" text,
Swimming text,
Running text,
Fencing text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the greatest number of wins by japanese formula three?`
```sql
| SELECT MAX(Wins) FROM table_1_10748727_1 WHERE "Series" ILIKE '%Japanese%Formula%Three%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
14982,
310,
278,
2243,
29878,
15709,
11266,
10080,
274,
457,
29871,
29941,
29945,
4317,
260,
29900,
29889,
29929,
29945,
29892,
607,
756,
263,
12789,
284,
3309,
310,
29871,
29941,
29945,
4317,
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,
29941,
29900,
29900,
29900,
29947,
29918,
29955,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29906,
29929,
29946,
29900,
29955,
29918,
29955,
313,
13,
12,
29908,
29941,
29945,
4317,
382,
10536,
322,
7126,
263,
10700,
545,
29908,
1426,
29892,
13,
12,
29933,
9502,
1426,
29892,
13,
12,
29908,
7976,
29889,
263,
10700,
545,
29908,
1426,
29892,
13,
12,
29908,
29943,
18642,
365,
1477,
29908,
1426,
29892,
13,
12,
29908,
7566,
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,
14982,
310,
278,
2243,
29878,
15709,
11266,
10080,
274,
457,
29871,
29941,
29945,
4317,
260,
29900,
29889,
29929,
29945,
29892,
607,
756,
263,
12789,
284,
3309,
310,
29871,
29941,
29945,
4317,
29973,
29952,
13,
28956,
2850,
13,
5097,
18007,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29906,
29929,
29946,
29900,
29955,
29918,
29955,
5754,
376,
29943,
18642,
365,
1477,
29908,
306,
5265,
6059,
14210,
29941,
29945,
4317,
29001,
5300,
376,
7566,
4408,
29908,
306,
5265,
6059,
14210,
2536,
29878,
29995,
11082,
293,
29995,
24947,
10080,
29995,
29883,
457,
29995,
29941,
29945,
4317,
29995,
29873,
29900,
29889,
29929,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
18007,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29906,
29929,
29946,
29900,
29955,
29918,
29955,
5754,
376,
29943,
18642,
365,
1477,
29908,
306,
5265,
6059,
14210,
29941,
29945,
4317,
29001,
5300,
376,
7566,
4408,
29908,
306,
5265,
6059,
14210,
2536,
29878,
29995,
11082,
293,
29995,
24947,
10080,
29995,
29883,
457,
29995,
29941,
29945,
4317,
29995,
29873,
29900,
29889,
29929,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the brand of the slr magic hyperprime cine 35mm t0.95, which has a focal length of 35mm?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11630008_7 (
"Written by" text,
"Series #" numeric,
"Directed by" text,
"Original air date" text,
"Production code" numeric,
Title text,
"Season #" numeric
);
CREATE TABLE table_2_18729407_7 (
"35mm EFL and equivalent aperture" text,
Brand text,
"Max. aperture" text,
"Focal Length" text,
"Product Name" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the brand of the slr magic hyperprime cine 35mm t0.95, which has a focal length of 35mm?`
```sql
| SELECT Brand FROM table_2_18729407_7 WHERE "Focal Length" ILIKE '%35mm%' AND "Product Name" ILIKE '%slr%magic%hyperprime%cine%35mm%t0.95%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1223,
2879,
363,
29871,
29896,
29945,
29955,
8090,
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,
29955,
29946,
29946,
29896,
29918,
29896,
313,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
16985,
29892,
13,
12,
29928,
575,
537,
1426,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
29889,
313,
29906,
29900,
29900,
29941,
29892,
297,
25540,
5513,
16985,
29892,
13,
12,
29908,
29954,
11191,
313,
29906,
29900,
29900,
29941,
29892,
349,
7024,
297,
2316,
29889,
25540,
1723,
29908,
16985,
29892,
13,
12,
1184,
29894,
1239,
1426,
29892,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29900,
29946,
12678,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29906,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
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,
29955,
29941,
29900,
29929,
29945,
29900,
29900,
29918,
29896,
313,
13,
12,
20325,
1426,
29892,
13,
12,
10749,
16985,
29892,
13,
12,
7900,
2879,
1426,
29892,
13,
12,
7445,
29879,
1426,
29892,
13,
12,
29934,
774,
3885,
1426,
29892,
13,
12,
27407,
29877,
874,
1426,
29892,
13,
12,
7789,
1338,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29954,
1280,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29953,
29929,
29945,
29918,
29941,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
1281,
18769,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
3338,
392,
11963,
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,
1223,
2879,
363,
29871,
29896,
29945,
29955,
8090,
29952,
13,
28956,
2850,
13,
5097,
4007,
2879,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29900,
29929,
29945,
29900,
29900,
29918,
29896,
5754,
376,
29954,
1280,
29908,
353,
525,
29896,
29945,
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,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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,
5097,
4007,
2879,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29900,
29929,
29945,
29900,
29900,
29918,
29896,
5754,
376,
29954,
1280,
29908,
353,
525,
29896,
29945,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the assists for 157 games`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1067441_1 (
"Area (km²)" numeric,
Density text,
"GDP per cap. (2003, in €)" numeric,
"GDP (2003, PPS in mil. € )" numeric,
Province text,
"Population (2004 estimate)" numeric
);
CREATE TABLE table_1_12226390_2 (
"Directed by" text,
"Written by" text,
"Production code" numeric,
"Original air date" text,
"No. in series" numeric,
Title text
);
CREATE TABLE table_1_17309500_1 (
Points text,
GS numeric,
Assists text,
Blocks text,
Rebounds text,
Turnovers text,
Steals text,
Season text,
Games numeric
);
CREATE TABLE table_1_1137695_3 (
"Fastest Lap" text,
"Winning Driver" text,
"Pole Position" text,
Report text,
"Winning Constructor" text,
Round numeric,
"Grand Prix" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the assists for 157 games`
```sql
| SELECT Assists FROM table_1_17309500_1 WHERE "Games" = '157' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
4712,
29892,
746,
5057,
8984,
29879,
338,
376,
29928,
14763,
1632,
4600,
313,
29941,
29906,
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,
29929,
29900,
29947,
29953,
29955,
29953,
29918,
29955,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29953,
29900,
29941,
29953,
29918,
29929,
313,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29929,
29941,
29953,
29955,
29918,
29941,
313,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
3057,
29899,
29873,
5790,
29908,
1426,
29892,
13,
12,
1451,
11768,
1426,
29892,
13,
12,
29908,
7129,
287,
3026,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29945,
29955,
29946,
29947,
29918,
29906,
313,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
272,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29947,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
10507,
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,
4259,
29908,
16985,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
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,
4712,
29892,
746,
5057,
8984,
29879,
338,
376,
29928,
14763,
1632,
4600,
313,
29941,
29906,
5513,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29953,
29900,
29941,
29953,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29941,
29906,
29953,
29900,
29941,
29953,
29918,
29929,
5754,
376,
16382,
3291,
29908,
306,
5265,
6059,
14210,
29881,
14763,
29995,
629,
4600,
29995,
29898,
29941,
29906,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Date, when High Points is "Danny Granger (32)"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10908676_7 (
"No. in season" numeric,
"Written by" text,
Title text,
"Original air date" text,
"No. in series" numeric,
"Directed by" text
);
CREATE TABLE table_2_17326036_9 (
"High points" text,
Date text,
Record text,
"Location Attendance" text,
"High rebounds" text,
Team text,
Game numeric,
"High assists" text,
Score text
);
CREATE TABLE table_1_10749367_3 (
"Air Date" text,
"Test-taker" text,
Challenge text,
"Passed?" text,
"#" numeric,
Winner text
);
CREATE TABLE table_1_11715748_2 (
"Original airdate" text,
"Season #" numeric,
"Series #" numeric,
"Director(s)" text,
"Writer(s)" text
);
CREATE TABLE table_1_10470082_8 (
Title text,
Villains text,
Storyteller text,
"US air date" text,
Director text,
"No." numeric,
Writer text
);
CREATE TABLE table_1_11562143_1 (
"Directed by" text,
"No. in season" numeric,
"Featured character(s)" text,
"U.S. viewers (million)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Date, when High Points is "Danny Granger (32)"?`
```sql
| SELECT Date FROM table_2_17326036_9 WHERE "High points" ILIKE '%danny%granger%(32)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
18195,
287,
491,
278,
7660,
22009,
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,
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,
2008,
1658,
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,
29906,
29947,
29946,
29900,
29945,
29900,
29900,
29918,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29946,
29945,
29900,
29941,
29918,
29896,
313,
13,
12,
29908,
18767,
304,
1741,
950,
19576,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
28877,
29899,
786,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29946,
29945,
29929,
29918,
29896,
313,
13,
12,
2928,
3518,
1133,
16985,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
29908,
4557,
12146,
29908,
1426,
29892,
13,
12,
18457,
1426,
29892,
13,
12,
3047,
19811,
1233,
16985,
29892,
13,
12,
29908,
3782,
29889,
5373,
2782,
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,
22110,
471,
18195,
287,
491,
278,
7660,
22009,
1338,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29946,
29900,
29945,
29900,
29900,
29918,
29906,
5754,
376,
29940,
15444,
3815,
29908,
306,
5265,
6059,
14210,
29956,
7321,
29995,
12415,
277,
1338,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29896,
29918,
29906,
29947,
29946,
29900,
29945,
29900,
29900,
29918,
29906,
5754,
376,
29940,
15444,
3815,
29908,
306,
5265,
6059,
14210,
29956,
7321,
29995,
12415,
277,
1338,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was drafted by the Washington Capitals?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1167698_1 (
"Runner-up" text,
Champion text,
Season text,
"Top scorer" text,
"Third place" text
);
CREATE TABLE table_1_2840500_2 (
Position text,
Player text,
Pick numeric,
"NHL team" text,
"College/junior/club team" text,
Nationality text
);
CREATE TABLE table_1_12444503_1 (
"lost to eventual winner" text,
Score text,
Winner text,
"lost to eventual runner-up" text
);
CREATE TABLE table_1_1081459_1 (
Introduced numeric,
Builder text,
"Number Range" text,
Region text,
Withdrawn numeric,
"No. Built" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Who was drafted by the Washington Capitals?`
```sql
| SELECT Player FROM table_1_2840500_2 WHERE "NHL team" ILIKE '%Washington%Capitals%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2186,
8158,
746,
278,
6493,
292,
3815,
338,
278,
7660,
4367,
808,
1144,
322,
278,
2635,
338,
3839,
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,
29900,
29941,
29896,
29906,
29945,
29946,
29955,
29918,
29896,
313,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
29896,
29929,
29929,
29947,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29929,
29929,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29953,
29900,
12672,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29955,
29929,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29945,
29945,
12672,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29945,
29946,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29929,
29896,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29929,
29900,
23291,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29929,
29946,
29946,
29906,
29947,
29929,
29918,
29946,
313,
13,
12,
29908,
8514,
8583,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
29908,
15790,
2522,
487,
29908,
1426,
29892,
13,
12,
29908,
6116,
11407,
8583,
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,
2186,
8158,
746,
278,
6493,
292,
3815,
338,
278,
7660,
4367,
808,
1144,
322,
278,
2635,
338,
3839,
29871,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
15790,
2522,
487,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29929,
29946,
29946,
29906,
29947,
29929,
29918,
29946,
5754,
376,
6116,
11407,
8583,
29908,
306,
5265,
6059,
14210,
29893,
7321,
29995,
1127,
808,
1144,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
344,
3266,
29995,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
15790,
2522,
487,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29929,
29946,
29946,
29906,
29947,
29929,
29918,
29946,
5754,
376,
6116,
11407,
8583,
29908,
306,
5265,
6059,
14210,
29893,
7321,
29995,
1127,
808,
1144,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
344,
3266,
29995,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the final score when the visiting team is the Washington Redskins and the date is September 4?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10312547_1 (
Character text,
"1998 Broadway" text,
"1999 Broadway" text,
"1960 broadcast" text,
"1979 Broadway" text,
"1955 broadcast" text,
"1954 Broadway" text,
"1991 Broadway" text,
"1990 Broadway" text
);
CREATE TABLE table_2_10944289_4 (
"Host Team" text,
Date text,
Stadium text,
"Final Score" text,
"Visiting Team" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the final score when the visiting team is the Washington Redskins and the date is September 4?`
```sql
| SELECT "Final Score" FROM table_2_10944289_4 WHERE "Visiting Team" ILIKE '%washington%redskins%' AND "Date" ILIKE '%september%4%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
7991,
5322,
29915,
1763,
610,
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,
29896,
29955,
29896,
29900,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
12883,
29898,
29879,
29897,
2113,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
12881,
728,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29896,
29896,
29945,
29947,
29918,
29941,
313,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
29892,
13,
12,
29908,
29907,
8842,
1754,
20605,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29879,
29908,
16985,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
7115,
29908,
1426,
29892,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
25353,
8341,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29947,
29953,
29945,
29941,
29918,
29929,
313,
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,
429,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
20779,
313,
1095,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
20779,
313,
429,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
12415,
2410,
313,
1095,
4735,
1723,
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,
7991,
5322,
29915,
1763,
610,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29955,
29896,
29900,
29896,
29947,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29890,
711,
29995,
3090,
793,
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,
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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,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29955,
29896,
29900,
29896,
29947,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29890,
711,
29995,
3090,
793,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Bob Charles' To par?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18171018_1 (
"To par" text,
Country text,
"Year(s) won" text,
Player text,
Total numeric,
Finish text
);
CREATE TABLE table_1_10021158_3 (
"Money list rank" text,
"2nd" numeric,
"Earnings ($)" numeric,
"Cuts made*" numeric,
"Top 10s" numeric,
"Tournaments played" numeric,
"Scoring rank" text,
"Scoring average" text,
Year numeric,
Wins numeric,
"Best finish" text
);
CREATE TABLE table_1_1008653_9 (
"Official or native language(s) (alphabet/script)" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Country ( exonym )" text,
"Capital ( endonym )" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Bob Charles' To par?`
```sql
| SELECT "To par" FROM table_2_18171018_1 WHERE "Player" ILIKE '%bob%charles%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4712,
756,
263,
11738,
557,
310,
5714,
29871,
29896,
29892,
322,
29871,
29955,
29953,
414,
3291,
7968,
1135,
29871,
29929,
29946,
29892,
322,
263,
8448,
7200,
1135,
29871,
29896,
29941,
29892,
322,
263,
14164,
310,
29871,
29896,
29946,
29899,
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,
29906,
29918,
29896,
29946,
29947,
29906,
29947,
29945,
29896,
29896,
29918,
29941,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
29955,
29953,
414,
3291,
29908,
16985,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
29949,
407,
265,
296,
3291,
29908,
16985,
29892,
13,
12,
855,
276,
557,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29941,
29906,
29929,
29900,
29918,
29906,
313,
13,
12,
29908,
29934,
1218,
29914,
2713,
598,
313,
29896,
29947,
29899,
29946,
29929,
5513,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
3706,
8276,
5513,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
18448,
5513,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
11147,
5513,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29923,
12907,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29955,
29929,
29929,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6508,
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,
8809,
436,
4712,
756,
263,
11738,
557,
310,
5714,
29871,
29896,
29892,
322,
29871,
29955,
29953,
414,
3291,
7968,
1135,
29871,
29929,
29946,
29892,
322,
263,
8448,
7200,
1135,
29871,
29896,
29941,
29892,
322,
263,
14164,
310,
29871,
29896,
29946,
29899,
29946,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29947,
29906,
29947,
29945,
29896,
29896,
29918,
29941,
5754,
376,
855,
276,
557,
29908,
306,
5265,
6059,
14210,
18767,
29995,
29896,
29001,
5300,
376,
29955,
29953,
414,
3291,
29908,
529,
525,
29929,
29946,
29915,
5300,
376,
14199,
29908,
1405,
525,
29896,
29941,
29915,
5300,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29946,
29899,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29947,
29906,
29947,
29945,
29896,
29896,
29918,
29941,
5754,
376,
855,
276,
557,
29908,
306,
5265,
6059,
14210,
18767,
29995,
29896,
29001,
5300,
376,
29955,
29953,
414,
3291,
29908,
529,
525,
29929,
29946,
29915,
5300,
376,
14199,
29908,
1405,
525,
29896,
29941,
29915,
5300,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29946,
29899,
29946,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Date has a Streak of lost 1, and 76ers points smaller than 94, and a Game larger than 13, and a Record of 14-40?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_14828511_3 (
Result text,
"76ers points" numeric,
Game numeric,
"Opponent points" numeric,
Streak text,
Record text,
Date text,
Opponent text
);
CREATE TABLE table_1_11253290_2 (
"Rating/Share (18-49)" text,
Share numeric,
"Rank (timeslot)" numeric,
"#" numeric,
"Rank (week)" text,
Rating text,
"Rank (night)" numeric,
"Viewers (millions)" text,
Episode text
);
CREATE TABLE table_1_11621799_1 (
Tournament text,
"1st Prize( $ )" numeric,
Winner text,
Score text,
Location text,
"Purse( $ )" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which Date has a Streak of lost 1, and 76ers points smaller than 94, and a Game larger than 13, and a Record of 14-40?`
```sql
| SELECT Date FROM table_2_14828511_3 WHERE "Streak" ILIKE '%lost%1%' AND "76ers points" < '94' AND "Game" > '13' AND "Record" ILIKE '%14-40%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
23995,
296,
363,
278,
3748,
5318,
373,
15251,
29871,
29906,
29900,
29892,
29871,
29906,
29900,
29900,
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,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29896,
313,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
29892,
13,
12,
29923,
3334,
2631,
1426,
29892,
13,
12,
20755,
1426,
29892,
13,
12,
18984,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29946,
29947,
29946,
29906,
29953,
29896,
29918,
29941,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29906,
29906,
313,
13,
12,
9075,
1426,
29892,
13,
12,
3563,
497,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29900,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
29911,
4345,
9681,
29908,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
29908,
12883,
4240,
29908,
16985,
29892,
13,
12,
4557,
1426,
29892,
13,
12,
29908,
8179,
9081,
1134,
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,
338,
278,
23995,
296,
363,
278,
3748,
5318,
373,
15251,
29871,
29906,
29900,
29892,
29871,
29906,
29900,
29900,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29946,
29947,
29946,
29906,
29953,
29896,
29918,
29941,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
2987,
504,
29995,
29906,
29900,
24163,
29906,
29900,
29900,
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,
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,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29946,
29947,
29946,
29906,
29953,
29896,
29918,
29941,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
2987,
504,
29995,
29906,
29900,
24163,
29906,
29900,
29900,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the opponent for the game played on august 20, 2006?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11240028_1 (
"First appearance" text,
"Portrayed by" text,
"Last appearance" text,
Episodes text,
Character text,
Duration text
);
CREATE TABLE table_2_16484261_3 (
Tournament text,
Surface text,
Opponent text,
Date text,
Score text
);
CREATE TABLE table_1_11803648_22 (
Player text,
Overall text,
Position text,
"Club team" text,
Round numeric,
Nationality text
);
CREATE TABLE table_1_1166023_1 (
"TMS Number" text,
Builder text,
"Year built" numeric,
Number text,
"Carriage type" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the opponent for the game played on august 20, 2006?`
```sql
| SELECT Opponent FROM table_2_16484261_3 WHERE "Date" ILIKE '%august%20,%2006%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
4134,
29892,
746,
9206,
338,
29871,
29955,
29947,
399,
1131,
29879,
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,
29947,
29945,
29900,
29929,
29900,
29918,
29896,
313,
13,
12,
21472,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
12889,
1426,
29892,
13,
12,
2385,
1426,
29892,
13,
12,
1525,
29907,
6779,
1426,
29892,
13,
12,
29908,
16885,
310,
19405,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29896,
313,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
29892,
13,
12,
29940,
290,
3381,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29945,
29896,
29929,
29941,
29953,
29918,
29896,
313,
13,
12,
29908,
8809,
3246,
408,
1273,
310,
6977,
1213,
1426,
29892,
13,
12,
29908,
23859,
12060,
29879,
29871,
29906,
29900,
29900,
29953,
29908,
16985,
29892,
13,
12,
29908,
8969,
29934,
29871,
29906,
29900,
29900,
29953,
29908,
1426,
29892,
13,
12,
29908,
29954,
15860,
29871,
29906,
29900,
29900,
29953,
29908,
1426,
29892,
13,
12,
3981,
29891,
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,
4134,
29892,
746,
9206,
338,
29871,
29955,
29947,
399,
1131,
29879,
29973,
29952,
13,
28956,
2850,
13,
5097,
315,
4375,
1799,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29945,
29900,
29929,
29900,
29918,
29896,
5754,
376,
21472,
29908,
306,
5265,
6059,
14210,
29955,
29947,
29995,
29893,
1131,
29879,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
315,
4375,
1799,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29945,
29900,
29929,
29900,
29918,
29896,
5754,
376,
21472,
29908,
306,
5265,
6059,
14210,
29955,
29947,
29995,
29893,
1131,
29879,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Class, when Power is 78 Watts?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1585090_1 (
Power text,
Frequency text,
Identifier text,
Class text,
RECNet text,
"City of license" text
);
CREATE TABLE table_1_10236830_1 (
Country text,
"Actors Name" text,
Director text,
"Film Name" text,
Nomination text
);
CREATE TABLE table_1_12251936_1 (
"Whites as % of Pop." text,
"Live births 2006" numeric,
"TFR 2006" text,
"GFR 2006" text,
County text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Class, when Power is 78 Watts?`
```sql
| SELECT CLASS FROM table_2_1585090_1 WHERE "Power" ILIKE '%78%watts%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2058,
471,
10239,
29891,
20096,
262,
297,
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,
29906,
29929,
29896,
29941,
29929,
29947,
29945,
29918,
29945,
313,
13,
12,
20097,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29946,
29906,
29929,
29946,
29945,
29918,
29896,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
11536,
1939,
1213,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
1043,
414,
1426,
29892,
13,
12,
29907,
6146,
1182,
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,
2058,
471,
10239,
29891,
20096,
262,
297,
29973,
29952,
13,
28956,
2850,
13,
5097,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29929,
29896,
29941,
29929,
29947,
29945,
29918,
29945,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
3221,
29891,
29995,
29886,
485,
262,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29929,
29896,
29941,
29929,
29947,
29945,
29918,
29945,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
3221,
29891,
29995,
29886,
485,
262,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What place was Corey Pavin in?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_12913985_5 (
Score text,
Place text,
Country text,
"To par" text,
Player text
);
CREATE TABLE table_1_11642945_1 (
"Original air date" text,
"Total No." numeric,
Director text,
Viewers text,
Celebrity text
);
```
### Answer
Here is the SQL query that answers the question:
`What place was Corey Pavin in?`
```sql
| SELECT Place FROM table_2_12913985_5 WHERE "Player" ILIKE '%corey%pavin%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
17943,
297,
9817,
756,
263,
3878,
23860,
310,
29871,
29900,
29889,
29900,
29947,
29995,
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,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29896,
29955,
313,
13,
12,
3563,
497,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29955,
29953,
29946,
29896,
29953,
29918,
29941,
313,
13,
12,
11536,
1426,
29892,
13,
12,
29979,
4743,
1426,
29892,
13,
12,
10900,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
21823,
1426,
29892,
13,
12,
18700,
1426,
29892,
13,
12,
29933,
4708,
1426,
29892,
13,
12,
29908,
29881,
17678,
1546,
8037,
322,
6054,
29908,
16985,
29892,
13,
12,
9816,
513,
713,
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,
17943,
297,
9817,
756,
263,
3878,
23860,
310,
29871,
29900,
29889,
29900,
29947,
29995,
29973,
29952,
13,
28956,
2850,
13,
5097,
9817,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29955,
29953,
29946,
29896,
29953,
29918,
29941,
5754,
376,
23923,
23860,
29908,
306,
5265,
6059,
14210,
29900,
29889,
29900,
29947,
7686,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
9817,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29955,
29953,
29946,
29896,
29953,
29918,
29941,
5754,
376,
23923,
23860,
29908,
306,
5265,
6059,
14210,
29900,
29889,
29900,
29947,
7686,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Category in Brown has a Frequency of 0.08%?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11803648_17 (
Overall numeric,
Player text,
Round numeric,
Nationality text,
Position text,
"Club team" text
);
CREATE TABLE table_2_16176416_3 (
Total text,
Yellow text,
Category text,
Frequency text,
White text,
Black text,
Brown text,
"difference between White and Black" numeric,
Amerindian text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Category in Brown has a Frequency of 0.08%?`
```sql
| SELECT Brown FROM table_2_16176416_3 WHERE "Frequency" ILIKE '%0.08%%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
6588,
2169,
28258,
756,
263,
5839,
396,
7200,
1135,
29871,
29906,
29896,
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,
29900,
29945,
29896,
29947,
29918,
29896,
313,
13,
12,
4806,
481,
265,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29924,
424,
336,
1426,
29892,
13,
12,
13696,
441,
1426,
29892,
13,
12,
29908,
29954,
336,
2350,
313,
20334,
300,
5513,
1426,
29892,
13,
12,
21602,
1426,
29892,
13,
12,
29908,
9485,
538,
713,
341,
30107,
29873,
31056,
29895,
30107,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29953,
29929,
29945,
29945,
29918,
29946,
29941,
313,
13,
12,
29908,
19409,
313,
3226,
3437,
5513,
1426,
29892,
13,
12,
29908,
29934,
29881,
396,
29908,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4597,
28258,
29908,
16985,
29892,
13,
12,
29908,
3247,
28258,
29908,
16985,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29896,
313,
13,
12,
1542,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29929,
29947,
29946,
29918,
29906,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
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,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
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,
6588,
2169,
28258,
756,
263,
5839,
396,
7200,
1135,
29871,
29906,
29896,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
703,
4597,
28258,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29953,
29929,
29945,
29945,
29918,
29946,
29941,
5754,
376,
29925,
860,
396,
29908,
1405,
525,
29906,
29896,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
16884,
29954,
703,
4597,
28258,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29953,
29929,
29945,
29945,
29918,
29946,
29941,
5754,
376,
29925,
860,
396,
29908,
1405,
525,
29906,
29896,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What average Reg GP has a pick # larger than 210?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_100518_1 (
Weapon text,
Name text,
Mantra text,
Consort text,
"Graha (Planet)" text,
Direction text,
"Guardian Mātṛkā" text
);
CREATE TABLE table_2_11636955_43 (
"Team (League)" text,
"Rd #" numeric,
Player text,
"Reg GP" numeric,
"Pl GP" numeric,
"Pick #" numeric
);
CREATE TABLE table_1_11658094_1 (
Type text,
Institution text,
Founded numeric,
Enrollment numeric,
Joined text,
Location text,
Nickname text
);
CREATE TABLE table_1_10718984_2 (
"Directed by" text,
"No. in series" numeric,
Title text,
"Written by" text,
"Original air date" text,
"No. in season" numeric,
"U.S. viewers (millions)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What average Reg GP has a pick # larger than 210?`
```sql
| SELECT AVG("Reg GP") FROM table_2_11636955_43 WHERE "Pick #" > '210' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
373,
472,
29871,
29947,
29901,
29941,
29900,
746,
26818,
3765,
338,
373,
472,
29871,
29955,
29901,
29900,
29900,
472,
393,
8242,
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,
29906,
29906,
29947,
29900,
29955,
29955,
29955,
29918,
29906,
313,
13,
12,
29908,
29896,
29900,
29901,
29900,
29900,
29908,
1426,
29892,
13,
12,
29908,
29955,
29901,
29941,
29900,
29908,
1426,
29892,
13,
12,
29908,
29947,
29901,
29941,
29900,
29908,
1426,
29892,
13,
12,
29908,
29929,
29901,
29941,
29900,
29908,
1426,
29892,
13,
12,
29908,
29955,
29901,
29900,
29900,
29908,
1426,
29892,
13,
12,
29908,
29947,
29901,
29900,
29900,
29908,
1426,
29892,
13,
12,
29908,
29929,
29901,
29900,
29900,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29945,
29941,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
22606,
368,
22125,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29899,
29946,
29929,
29908,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
1043,
414,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29953,
29953,
29953,
29945,
29918,
29896,
313,
13,
12,
29908,
5963,
2795,
29918,
29953,
29908,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
29928,
575,
537,
24810,
639,
2383,
30088,
29908,
16985,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
29908,
13799,
2383,
30088,
29908,
16985,
29892,
13,
12,
13799,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29955,
29900,
29946,
29900,
29918,
29953,
313,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
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,
5618,
338,
373,
472,
29871,
29947,
29901,
29941,
29900,
746,
26818,
3765,
338,
373,
472,
29871,
29955,
29901,
29900,
29900,
472,
393,
8242,
29973,
29952,
13,
28956,
2850,
13,
5097,
29871,
29947,
29901,
29941,
29900,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29947,
29900,
29955,
29955,
29955,
29918,
29906,
5754,
376,
29955,
29901,
29900,
29900,
29908,
306,
5265,
6059,
14210,
26601,
29995,
8896,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29947,
29901,
29941,
29900,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29947,
29900,
29955,
29955,
29955,
29918,
29906,
5754,
376,
29955,
29901,
29900,
29900,
29908,
306,
5265,
6059,
14210,
26601,
29995,
8896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is on at 8:30 when occupation double is on at 7:00 at that channel?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_12280777_2 (
"10:00" text,
"7:30" text,
"8:30" text,
"9:30" text,
"7:00" text,
"8:00" text,
"9:00" text
);
CREATE TABLE table_1_11753080_2 (
Episode text,
Share numeric,
"Weekly Rank" text,
"18-49" text,
Timeslot text,
"#" numeric,
"Air Date" text,
Rating text,
Viewers text
);
CREATE TABLE table_1_1246665_1 (
"unnamed_6" text,
Population numeric,
"Density Population per km²" numeric,
County text,
Municipality text,
"Area km²" numeric,
Area text
);
CREATE TABLE table_1_11207040_6 (
"Outgoing manager" text,
"Date of vacancy" text,
"Date of appointment" text,
Team text,
"Manner of departure" text,
"Replaced by" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is on at 8:30 when occupation double is on at 7:00 at that channel?`
```sql
| SELECT 8:30 FROM table_2_12280777_2 WHERE "7:00" ILIKE '%occupation%double%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
7663,
297,
29871,
29896,
29929,
29929,
29947,
411,
278,
6297,
29914,
1022,
275,
356,
310,
4699,
23568,
586,
1460,
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,
29906,
29947,
29945,
29946,
29941,
29918,
29941,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
2539,
29908,
1426,
29892,
13,
12,
29931,
14556,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
17734,
1076,
19409,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
6212,
21642,
29908,
16985,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29906,
29896,
29947,
29906,
29918,
29906,
313,
13,
12,
4557,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29911,
277,
793,
1426,
29892,
13,
12,
3206,
11259,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29896,
313,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29945,
29906,
29929,
29906,
29953,
29918,
29955,
313,
13,
12,
12883,
16985,
29892,
13,
12,
10900,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
16727,
29914,
29923,
12907,
29908,
1426,
29892,
13,
12,
29908,
1123,
7334,
10070,
322,
2245,
457,
267,
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,
29908,
3782,
1213,
1426,
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,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
7663,
297,
29871,
29896,
29929,
29929,
29947,
411,
278,
6297,
29914,
1022,
275,
356,
310,
4699,
23568,
586,
1460,
29973,
29952,
13,
28956,
2850,
13,
5097,
17943,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29945,
29906,
29929,
29906,
29953,
29918,
29955,
5754,
376,
12883,
29908,
353,
525,
29896,
29929,
29929,
29947,
29915,
5300,
376,
16727,
29914,
29923,
12907,
29908,
306,
5265,
6059,
14210,
29881,
16093,
29995,
700,
305,
586,
1460,
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,
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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,
5097,
17943,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29945,
29906,
29929,
29906,
29953,
29918,
29955,
5754,
376,
12883,
29908,
353,
525,
29896,
29929,
29929,
29947,
29915,
5300,
376,
16727,
29914,
29923,
12907,
29908,
306,
5265,
6059,
14210,
29881,
16093,
29995,
700,
305,
586,
1460,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the category in 1998 with the role/episode of David Duchovny?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12028543_3 (
Season text,
"Cup FinalDate" text,
LosingTeam text,
Score text,
WinningTeam text,
"Cup Final Attendance" numeric,
Location text
);
CREATE TABLE table_1_12262182_2 (
Number numeric,
Name text,
Opponent text,
Date text,
Titles text,
Defenses numeric
);
CREATE TABLE table_1_1012730_1 (
Poles numeric,
"Avg. Finish" text,
Starts numeric,
Wins numeric,
Position text,
Winnings text,
"Top 10" numeric,
"Top 5" numeric,
"Team(s)" text,
"Avg. Start" text
);
CREATE TABLE table_2_18552926_7 (
Year numeric,
Category text,
Result text,
"Role/Episode" text,
"Recipients and nominees" text
);
CREATE TABLE table_1_11545282_5 (
Player text,
"No." text,
"School/Club Team" text,
"Years for Jazz" text,
Nationality text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the category in 1998 with the role/episode of David Duchovny?`
```sql
| SELECT Category FROM table_2_18552926_7 WHERE "Year" = '1998' AND "Role/Episode" ILIKE '%david%duchovny%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1174,
509,
424,
756,
263,
29871,
29896,
29929,
29945,
29906,
5516,
261,
2219,
7812,
29899,
29953,
6012,
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,
29900,
29941,
29900,
29955,
29906,
29918,
29945,
313,
13,
12,
29908,
3073,
292,
3815,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29956,
8522,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
6558,
29879,
1426,
29892,
13,
12,
29908,
29933,
23980,
22056,
29908,
1426,
29892,
13,
12,
29908,
29933,
23980,
3815,
29908,
1426,
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,
3289,
1718,
29933,
5513,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
399,
29967,
29907,
1723,
29908,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
1718,
7698,
5513,
16985,
29892,
13,
12,
29908,
10095,
307,
4038,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
29956,
29967,
29907,
5513,
16985,
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,
16107,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
29908,
10536,
6536,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
10536,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
16107,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
11536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29947,
29941,
29945,
29941,
29918,
29896,
313,
13,
12,
20325,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
2369,
509,
424,
1426,
29892,
13,
12,
1451,
465,
275,
1426,
29892,
13,
12,
12412,
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,
1174,
509,
424,
756,
263,
29871,
29896,
29929,
29945,
29906,
5516,
261,
2219,
7812,
29899,
29953,
6012,
29973,
29952,
13,
28956,
2850,
13,
5097,
1174,
509,
424,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29947,
29941,
29945,
29941,
29918,
29896,
5754,
376,
12412,
29908,
306,
5265,
6059,
14210,
8247,
261,
2219,
29995,
4151,
523,
29899,
29953,
29001,
5300,
376,
12883,
29908,
353,
525,
29896,
29929,
29945,
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,
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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,
5097,
1174,
509,
424,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29947,
29941,
29945,
29941,
29918,
29896,
5754,
376,
12412,
29908,
306,
5265,
6059,
14210,
8247,
261,
2219,
29995,
4151,
523,
29899,
29953,
29001,
5300,
376,
12883,
29908,
353,
525,
29896,
29929,
29945,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What Entrant has a 1952 maserati straight-6 engine?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11303072_5 (
"Fielding team" text,
Season text,
Wicket text,
Venue text,
Runs text,
"Batting partners" text,
"Batting team" text
);
CREATE TABLE table_1_1131183_2 (
"Number of Jews (ASARB)" numeric,
"Rank ( WJC )" numeric,
"Rank (ARDA)" numeric,
"Metro area" text,
"Number of Jews (WJC)" numeric
);
CREATE TABLE table_1_1112176_1 (
"Total Goals" numeric,
"Other Goals" numeric,
"FA Cup Apps (Sub)" text,
"FL Cup Apps (Sub)" numeric,
"FA Cup Goals" numeric,
"FL Cup Goals" numeric,
"Other Apps" numeric,
"Total Apps (Sub)" text,
Division text,
"League Apps (Sub)" numeric,
"League Goals" numeric
);
CREATE TABLE table_2_1228353_1 (
Points numeric,
Year numeric,
Entrant text,
Chassis text,
Engine text
);
```
### Answer
Here is the SQL query that answers the question:
`What Entrant has a 1952 maserati straight-6 engine?`
```sql
| SELECT Entrant FROM table_2_1228353_1 WHERE "Engine" ILIKE '%maserati%straight-6%' AND "Year" = '1952' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4513,
29915,
29879,
2602,
338,
5034,
304,
6221,
4700,
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,
29941,
29896,
29906,
29929,
29918,
29947,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29955,
29947,
29906,
29955,
29896,
29918,
29896,
313,
13,
12,
29908,
22606,
368,
22125,
29908,
16985,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
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,
8003,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29896,
29929,
29900,
29953,
29918,
29896,
313,
13,
12,
29908,
22677,
18320,
29908,
1426,
29892,
13,
12,
29908,
2008,
271,
310,
390,
24494,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
7400,
29871,
29906,
29900,
29896,
29896,
20121,
29908,
16985,
29892,
13,
12,
29908,
29928,
575,
537,
313,
7323,
29889,
639,
2383,
29906,
5513,
1426,
29892,
13,
12,
29908,
4597,
1848,
5127,
12813,
2877,
313,
10363,
29924,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29896,
29906,
29941,
29900,
29918,
29896,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29947,
29945,
29946,
29947,
29955,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29925,
860,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29934,
618,
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,
4513,
29915,
29879,
2602,
338,
5034,
304,
6221,
4700,
29973,
29952,
13,
28956,
2850,
13,
5097,
21595,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29947,
29945,
29946,
29947,
29955,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
5753,
3278,
29995,
517,
29995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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21595,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29947,
29945,
29946,
29947,
29955,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
5753,
3278,
29995,
517,
29995,
29877,
7880,
29995,
22942,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which round's position is according to official website?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1013129_8 (
"College/junior/club team" text,
Nationality text,
Player text,
"NHL team" text
);
CREATE TABLE table_1_11178271_1 (
"Weekly Rank" numeric,
"Air Date" text,
Rating text,
Share numeric,
"18–49 (Rating/Share)" text,
Episode text,
"#" numeric,
"Viewers (m)" text
);
CREATE TABLE table_1_10015132_7 (
"School/Club Team" text,
Position text,
"No." numeric,
"Years in Toronto" text
);
CREATE TABLE table_1_1011906_1 (
"Land Area" text,
"Seat of RCM" text,
"Population Canada 2011 Census" numeric,
"Density (pop. per km2)" text,
"Regional County Municipality (RCM)" text
);
CREATE TABLE table_1_10361230_1 (
College text,
Overall numeric,
Choice numeric,
"Player name" text
);
CREATE TABLE table_2_15185487_1 (
Player text,
College text,
Pick text,
Position text,
Round text
);
```
### Answer
Here is the SQL query that answers the question:
`Which round's position is according to official website?`
```sql
| SELECT Round FROM table_2_15185487_1 WHERE "Position" ILIKE '%according%to%official%website%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
2635,
310,
4892,
6251,
297,
278,
1948,
393,
756,
263,
2635,
310,
15069,
2633,
6251,
310,
2635,
310,
15069,
2633,
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,
29945,
29929,
29953,
29896,
29929,
29946,
29918,
29896,
313,
13,
12,
13504,
1693,
1426,
29892,
13,
12,
29908,
5044,
310,
1840,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
15069,
2633,
29908,
1426,
29892,
13,
12,
29908,
6513,
310,
3240,
19211,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
4892,
29908,
1426,
29892,
13,
12,
29931,
361,
267,
8357,
1426,
29892,
13,
12,
29908,
22406,
472,
15069,
2633,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29906,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29955,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
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,
2635,
310,
4892,
6251,
297,
278,
1948,
393,
756,
263,
2635,
310,
15069,
2633,
6251,
310,
2635,
310,
15069,
2633,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
2539,
310,
4892,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29953,
29896,
29929,
29946,
29918,
29896,
5754,
376,
2539,
310,
15069,
2633,
29908,
306,
5265,
6059,
14210,
1256,
29995,
974,
29995,
262,
2987,
2633,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2539,
310,
4892,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29953,
29896,
29929,
29946,
29918,
29896,
5754,
376,
2539,
310,
15069,
2633,
29908,
306,
5265,
6059,
14210,
1256,
29995,
974,
29995,
262,
2987,
2633,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the date of death entry in the row that has a date of inauguration entry of date of inauguration?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18596194_1 (
President text,
"End of term" text,
"Date of birth" text,
"Date of inauguration" text,
"Length of retirement" text,
"Date of death" text,
Lifespan text,
"Age at inauguration" text
);
CREATE TABLE table_1_11677691_2 (
Player text,
Position text,
School text,
College text,
Hometown text
);
CREATE TABLE table_1_11545282_7 (
"No." numeric,
Nationality text,
"Years for Jazz" text,
"School/Club Team" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the date of death entry in the row that has a date of inauguration entry of date of inauguration?`
```sql
| SELECT "Date of death" FROM table_2_18596194_1 WHERE "Date of inauguration" ILIKE '%date%of%inauguration%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
9939,
5253,
310,
28134,
746,
727,
338,
263,
7115,
310,
29871,
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,
29906,
29918,
29896,
29945,
29946,
29929,
29946,
29947,
29947,
29941,
29918,
29906,
29953,
313,
13,
12,
29908,
2744,
29876,
950,
1735,
29908,
1426,
29892,
13,
12,
29908,
11536,
6978,
21709,
29908,
16985,
29892,
13,
12,
29908,
12415,
5946,
297,
671,
29908,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29906,
29929,
29918,
29896,
313,
13,
12,
2539,
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,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29945,
29955,
29946,
29947,
29918,
29906,
313,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
272,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
2008,
1658,
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,
9939,
5253,
310,
28134,
746,
727,
338,
263,
7115,
310,
29871,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
11536,
6978,
21709,
1159,
3895,
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,
5097,
18134,
703,
11536,
6978,
21709,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29929,
29946,
29947,
29947,
29941,
29918,
29906,
29953,
5754,
376,
29934,
804,
29908,
353,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the highest amount of passengers when there is a rank of 1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15494883_26 (
"Annual change" text,
"Total Passengers" numeric,
"Capacity in use" text,
Rank numeric,
Location text
);
CREATE TABLE table_1_11622829_1 (
Date text,
"Purse( $ )" numeric,
Winner text,
"1st Prize( $ )" numeric,
Score text,
Tournament text
);
CREATE TABLE table_1_11715748_2 (
"Series #" numeric,
Title text,
"Director(s)" text,
"Original airdate" text,
"Writer(s)" text,
"Season #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`what is the highest amount of passengers when there is a rank of 1?`
```sql
| SELECT MAX("Total Passengers") FROM table_2_15494883_26 WHERE "Rank" = '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
5318,
2750,
3448,
3815,
1244,
4006,
443,
1573,
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,
22406,
313,
6360,
29879,
29892,
3841,
5513,
1426,
29892,
13,
12,
29908,
2792,
6766,
29908,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
17946,
4712,
29908,
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,
29950,
1709,
1840,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29900,
29947,
29955,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
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,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29945,
29896,
29947,
29906,
29955,
29918,
29906,
313,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29908,
29911,
347,
694,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29941,
29953,
29900,
29896,
29918,
29896,
313,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
13454,
22450,
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,
5318,
2750,
3448,
3815,
1244,
4006,
443,
1573,
29973,
29952,
13,
28956,
2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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29955,
29918,
29906,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
4150,
4006,
29995,
348,
1573,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who played against away team hereford united?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10284385_1 (
"Age (years, days)" text,
"State served" text,
Party text,
"Begin Date" text,
"End Date" text,
"Date of birth" text,
Representative text,
"House term" text
);
CREATE TABLE table_1_1139087_2 (
Report text,
"Winning Driver" text,
Constructor text,
"Rd." numeric,
"Grand Prix" text,
"Pole Position" text,
Location text,
"Fastest Lap" text
);
CREATE TABLE table_2_17751827_2 (
"Away team" text,
"Tie no" text,
"Home team" text,
Score text,
Date text
);
CREATE TABLE table_1_1243601_1 (
"Open Cup" text,
Year text,
Division numeric,
"Regular Season" text,
League text,
Playoffs text
);
```
### Answer
Here is the SQL query that answers the question:
`Who played against away team hereford united?`
```sql
| SELECT "Home team" FROM table_2_17751827_2 WHERE "Away team" ILIKE '%hereford%united%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
471,
278,
3748,
393,
471,
4934,
472,
278,
12069,
778,
4815,
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,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29896,
29896,
313,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29929,
29900,
29918,
29953,
313,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29906,
29955,
29941,
29953,
29946,
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,
29924,
575,
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,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29955,
29900,
29900,
29929,
29918,
29896,
29945,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29908,
11184,
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,
10401,
471,
278,
3748,
393,
471,
4934,
472,
278,
12069,
778,
4815,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29955,
29900,
29900,
29929,
29918,
29896,
29945,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
558,
262,
778,
29995,
6378,
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,
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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,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29955,
29900,
29900,
29929,
29918,
29896,
29945,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
558,
262,
778,
29995,
6378,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When was the game that was held at the Princes Park?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11545282_11 (
"Years for Jazz" text,
"School/Club Team" text,
Position text,
"No." text,
Nationality text,
Player text
);
CREATE TABLE table_1_1140090_6 (
Report text,
Constructor text,
Circuit text,
"Winning driver" text,
"Race Name" text
);
CREATE TABLE table_1_12027364_1 (
"Womens doubles" text,
"Mixed doubles" text,
"Mens doubles" text,
"Mens singles" text,
"Womens singles" text,
Year numeric
);
CREATE TABLE table_2_10747009_15 (
Date text,
"Home team score" text,
Crowd numeric,
"Away team score" text,
Venue text,
"Away team" text,
"Home team" text
);
```
### Answer
Here is the SQL query that answers the question:
`When was the game that was held at the Princes Park?`
```sql
| SELECT Date FROM table_2_10747009_15 WHERE "Venue" ILIKE '%princes%park%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
1422,
3275,
15276,
1144,
892,
8703,
297,
278,
21180,
4113,
1531,
287,
373,
3839,
29871,
29896,
29896,
29892,
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,
29896,
29918,
29896,
29900,
29900,
29906,
29896,
29896,
29945,
29947,
29918,
29941,
313,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
1426,
29892,
13,
12,
29908,
29907,
8842,
1754,
20605,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
7115,
29908,
1426,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
29908,
25353,
8341,
29908,
1426,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29879,
29908,
16985,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29900,
29947,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
9972,
4384,
2635,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
3001,
1776,
292,
29908,
16985,
29892,
13,
12,
29908,
29933,
5371,
7803,
3001,
1776,
292,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
7803,
22125,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29947,
29945,
29945,
29941,
29918,
29896,
313,
13,
12,
3664,
267,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
855,
4521,
14706,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29924,
488,
2490,
1426,
29892,
13,
12,
29908,
9588,
7925,
4124,
344,
2954,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29945,
29941,
29947,
29947,
29896,
29900,
29918,
29896,
29900,
313,
13,
12,
29908,
29925,
3028,
7562,
29908,
1426,
29892,
13,
12,
29908,
29928,
331,
16909,
29901,
19556,
405,
28778,
29908,
1426,
29892,
13,
12,
29908,
29928,
1078,
4113,
1531,
287,
29908,
1426,
29892,
13,
12,
29908,
5612,
803,
273,
29901,
10015,
1460,
379,
352,
845,
974,
29908,
1426,
29892,
13,
12,
29908,
29931,
1479,
1085,
5359,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29947,
29941,
29929,
29946,
29918,
29946,
29941,
313,
13,
12,
29908,
25627,
8315,
518,
855,
2579,
1317,
5586,
29908,
1426,
29892,
13,
12,
2517,
29882,
23586,
1426,
29892,
13,
12,
22633,
1426,
29892,
13,
12,
29908,
29896,
29929,
29941,
29906,
313,
11083,
1162,
792,
5513,
1426,
29892,
13,
12,
29857,
554,
13493,
1426,
29892,
13,
12,
29908,
23577,
1426,
29892,
13,
12,
8654,
575,
1426,
29892,
13,
12,
29908,
1576,
14165,
29916,
29908,
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,
5328,
1784,
1422,
3275,
15276,
1144,
892,
8703,
297,
278,
21180,
4113,
1531,
287,
373,
3839,
29871,
29896,
29896,
29892,
29871,
29906,
29900,
29900,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
29931,
1479,
1085,
5359,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29945,
29941,
29947,
29947,
29896,
29900,
29918,
29896,
29900,
5754,
376,
29928,
1078,
4113,
1531,
287,
29908,
306,
5265,
6059,
14210,
2008,
3266,
29995,
29896,
29896,
24163,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29931,
1479,
1085,
5359,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29945,
29941,
29947,
29947,
29896,
29900,
29918,
29896,
29900,
5754,
376,
29928,
1078,
4113,
1531,
287,
29908,
306,
5265,
6059,
14210,
2008,
3266,
29995,
29896,
29896,
24163,
29906,
29900,
29900,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many different lead margins were stated in the poll administered on September 11, 2008?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10021158_3 (
"Money list rank" text,
"Cuts made*" numeric,
"Scoring rank" text,
"Tournaments played" numeric,
"Scoring average" text,
Wins numeric,
Year numeric,
"2nd" numeric,
"Best finish" text,
"Top 10s" numeric,
"Earnings ($)" numeric
);
CREATE TABLE table_1_103084_4 (
"Broadcast date" text,
"BBC One Rank" text,
"BBC One total viewing" numeric,
"BBC Two total viewing" text,
"BBC Two Rank" text
);
CREATE TABLE table_1_10568553_1 (
Notes text,
County text,
"Street Names" text,
Location text,
Milepost text,
"Roads Intersected" text
);
CREATE TABLE table_1_17538810_10 (
"Poll Source" text,
"Democrat: Jay Nixon" text,
"Dates administered" text,
"Republican: Kenny Hulshof" text,
"Lead Margin" text
);
CREATE TABLE table_1_1108394_43 (
"Richmond [Staten Is.]" text,
Manhattan text,
party text,
"1932 (before recount)" text,
Brooklyn text,
"%" text,
Queens text,
"The Bronx" text,
Total numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many different lead margins were stated in the poll administered on September 11, 2008?`
```sql
| SELECT COUNT("Lead Margin") FROM table_1_17538810_10 WHERE "Dates administered" ILIKE '%September%11,%2008%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
11369,
756,
263,
3309,
310,
29871,
29946,
29945,
6233,
322,
338,
4934,
373,
3111,
29871,
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,
29941,
29946,
29900,
29941,
29906,
29918,
29896,
313,
13,
12,
1542,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
4597,
2132,
800,
1426,
29892,
13,
12,
29908,
22814,
9681,
29908,
1426,
29892,
13,
12,
2052,
492,
2925,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29953,
29945,
29953,
29929,
29929,
29947,
29918,
29896,
313,
13,
12,
2385,
1426,
29892,
13,
12,
6513,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29885,
575,
5513,
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,
11369,
756,
263,
3309,
310,
29871,
29946,
29945,
6233,
322,
338,
4934,
373,
3111,
29871,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
12594,
3121,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29953,
29945,
29953,
29929,
29929,
29947,
29918,
29896,
5754,
376,
6513,
29908,
306,
5265,
6059,
14210,
29946,
29945,
29995,
1195,
2667,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
2987,
504,
29995,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
12594,
3121,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29953,
29945,
29953,
29929,
29929,
29947,
29918,
29896,
5754,
376,
6513,
29908,
306,
5265,
6059,
14210,
29946,
29945,
29995,
1195,
2667,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
2987,
504,
29995,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which circuit has a length of 45 minutes and is held on August 6?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11934032_1 (
Type text,
Location text,
District text,
Registrations text,
"Station Number" text,
Appliances text
);
CREATE TABLE table_2_13656998_1 (
Class text,
Length text,
Circuit text,
Race text,
Date text
);
CREATE TABLE table_1_11391954_3 (
"Marathon (womens)" numeric,
"Marathon (mens)" numeric,
Total numeric,
"Half Marathon (womens)" numeric,
Country text,
"Half Marathon (mens)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which circuit has a length of 45 minutes and is held on August 6?`
```sql
| SELECT Circuit FROM table_2_13656998_1 WHERE "Length" ILIKE '%45%minutes%' AND "Date" ILIKE '%august%6%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
471,
278,
3748,
411,
29871,
29896,
29941,
29899,
29945,
29899,
29953,
2407,
5318,
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,
29945,
29947,
29945,
29941,
29896,
29941,
29918,
29906,
313,
13,
12,
4537,
16985,
29892,
13,
12,
29908,
1256,
310,
4892,
30087,
29908,
1426,
29892,
13,
12,
978,
1426,
29892,
13,
12,
29908,
1256,
310,
12060,
29908,
1426,
29892,
13,
12,
29908,
4537,
310,
26091,
29908,
16985,
29892,
13,
12,
29908,
4537,
310,
14433,
29908,
16985,
29892,
13,
12,
29908,
1256,
310,
9512,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29945,
29946,
29896,
29896,
29896,
29918,
29941,
313,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
29164,
8276,
22125,
29908,
16985,
29892,
13,
12,
29908,
29940,
523,
22125,
29908,
1426,
29892,
13,
12,
29908,
29934,
1218,
29914,
2713,
598,
29871,
29896,
29947,
29994,
29946,
29929,
29908,
1426,
29892,
13,
12,
29908,
3563,
497,
22125,
29908,
16985,
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,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
7422,
1426,
29892,
13,
12,
29949,
2200,
265,
16985,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29900,
29947,
29896,
29955,
29947,
29918,
29945,
313,
13,
12,
14199,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
4165,
21642,
16985,
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,
10401,
471,
278,
3748,
411,
29871,
29896,
29941,
29899,
29945,
29899,
29953,
2407,
5318,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29900,
29947,
29896,
29955,
29947,
29918,
29945,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29941,
29899,
29945,
29899,
29953,
29001,
2
] | [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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4712,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29900,
29947,
29896,
29955,
29947,
29918,
29945,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29941,
29899,
29945,
29899,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When was the game with 13-5-6 record played?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11585313_2 (
number numeric,
"date of death†" text,
name text,
"date of birth" text,
"number of caps" numeric,
"number of goals" numeric,
"date of debut" text
);
CREATE TABLE table_1_11354111_3 (
"Viewers (m)" text,
"#" numeric,
Episode text,
"Air Date" text,
Rating text,
Share numeric,
"Timeslot Rank" numeric,
"Night Rank" text,
"Rating/Share 18–49" text,
"Overall Rank" numeric
);
CREATE TABLE table_1_10979230_4 (
"Romaji title" text,
"Release date" text,
Reference text,
Oricon numeric,
"Japanese title" text
);
CREATE TABLE table_1_23308178_5 (
Game numeric,
Points numeric,
Opponent text,
Score text,
Location text,
Record text,
Attendance numeric,
Date text
);
```
### Answer
Here is the SQL query that answers the question:
`When was the game with 13-5-6 record played?`
```sql
| SELECT Date FROM table_1_23308178_5 WHERE "Record" ILIKE '%13-5-6%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2058,
411,
263,
304,
610,
310,
382,
322,
263,
8158,
310,
29871,
29953,
29929,
29899,
29953,
29929,
29899,
29955,
29906,
29922,
29906,
29896,
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,
29953,
29946,
29955,
29953,
29941,
29929,
29918,
29896,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
14199,
3268,
29908,
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,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29955,
313,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
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,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29955,
29896,
29947,
29929,
29955,
29918,
29896,
313,
13,
12,
29908,
4074,
1727,
1949,
4689,
29908,
1426,
29892,
13,
12,
29908,
3981,
3793,
271,
457,
310,
18574,
2592,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
4074,
1727,
1949,
9698,
29908,
1426,
29892,
13,
12,
29908,
3981,
3793,
271,
457,
310,
278,
7861,
457,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29953,
29906,
29906,
29896,
29946,
29918,
29946,
313,
13,
12,
22150,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1762,
610,
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,
2058,
411,
263,
304,
610,
310,
382,
322,
263,
8158,
310,
29871,
29953,
29929,
29899,
29953,
29929,
29899,
29955,
29906,
29922,
29906,
29896,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29953,
29906,
29906,
29896,
29946,
29918,
29946,
5754,
376,
1762,
610,
29908,
306,
5265,
6059,
14210,
29872,
29001,
5300,
376,
20097,
29908,
306,
5265,
6059,
14210,
29953,
29929,
29899,
29953,
29929,
29899,
29955,
29906,
29922,
29906,
29896,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29953,
29906,
29906,
29896,
29946,
29918,
29946,
5754,
376,
1762,
610,
29908,
306,
5265,
6059,
14210,
29872,
29001,
5300,
376,
20097,
29908,
306,
5265,
6059,
14210,
29953,
29929,
29899,
29953,
29929,
29899,
29955,
29906,
29922,
29906,
29896,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the place with a to par of E and a score of 69-69-72=210?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10647639_1 (
Result text,
Opponent text,
Attendance numeric,
Record text,
Week numeric,
Date text,
"Game site" text
);
CREATE TABLE table_1_12232843_1 (
"Mens doubles" text,
"Mixed doubles" text,
Season numeric,
"Womens singles" text,
"Mens singles" text,
"Womens doubles" text
);
CREATE TABLE table_1_11734041_7 (
"No.(s)" numeric,
"Years for Rockets" text,
Position text,
"Height in Ft." text,
"School/Club Team/Country" text
);
CREATE TABLE table_1_11071897_1 (
"Interregnum began" text,
"Count Palatine of Saxony" text,
Duration text,
"Interregnum ended" text,
"Count Palatine of the Rhine" text
);
CREATE TABLE table_2_17162214_4 (
Place text,
Score text,
Country text,
Player text,
"To par" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the place with a to par of E and a score of 69-69-72=210?`
```sql
| SELECT Place FROM table_2_17162214_4 WHERE "To par" ILIKE '%e%' AND "Score" ILIKE '%69-69-72=210%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
4423,
14333,
749,
310,
278,
29871,
732,
2011,
1049,
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,
29896,
29918,
29906,
29955,
29955,
29941,
29946,
29906,
29947,
29953,
29918,
29896,
313,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29896,
29947,
29918,
29906,
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,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
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,
29915,
29879,
278,
4423,
14333,
749,
310,
278,
29871,
732,
2011,
1049,
3815,
29973,
29952,
13,
28956,
2850,
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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,
5097,
376,
6508,
6212,
21642,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29941,
29946,
29906,
29947,
29953,
29918,
29896,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
29992,
29995,
2290,
1049,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the location attendance of the @ portland team?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_27734286_1 (
"High assists" text,
"High points" text,
"Location Attendance" text,
Game numeric,
Date text,
Record text,
Score text,
"High rebounds" text,
Team text
);
CREATE TABLE table_1_1137718_2 (
Constructor text,
"Rd." numeric,
"Grand Prix" text,
"Winning Driver" text,
"Pole Position" text,
Location text,
Report text,
"Fastest Lap" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the location attendance of the @ portland team?`
```sql
| SELECT "Location Attendance" FROM table_1_27734286_1 WHERE "Team" ILIKE '%@%Portland%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1024,
310,
278,
3611,
393,
471,
10624,
491,
383,
7485,
383,
2674,
996,
322,
756,
263,
5802,
1353,
310,
29871,
29946,
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,
29941,
29953,
29896,
29946,
29945,
29941,
29918,
29906,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29963,
638,
886,
3291,
29908,
16985,
29892,
13,
12,
29949,
407,
265,
1237,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29941,
29929,
29953,
29953,
29918,
29896,
313,
13,
12,
29908,
29925,
312,
1273,
29908,
1426,
29892,
13,
12,
11042,
292,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29911,
1000,
16985,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
29908,
8120,
1338,
363,
29908,
16985,
29892,
13,
12,
29956,
265,
16985,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
29908,
8120,
1338,
2750,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29896,
29896,
29941,
29945,
29918,
29941,
313,
13,
12,
26486,
1426,
29892,
13,
12,
29908,
8120,
292,
304,
29908,
1426,
29892,
13,
12,
29908,
5594,
292,
472,
29908,
1426,
29892,
13,
12,
1433,
15081,
1426,
29892,
13,
12,
8498,
442,
545,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29929,
29906,
29929,
29946,
29945,
29918,
29941,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
276,
15118,
3026,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
23665,
428,
9681,
29908,
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,
338,
278,
1024,
310,
278,
3611,
393,
471,
10624,
491,
383,
7485,
383,
2674,
996,
322,
756,
263,
5802,
1353,
310,
29871,
29946,
29946,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
18527,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29929,
29906,
29929,
29946,
29945,
29918,
29941,
5754,
376,
17392,
272,
29908,
306,
5265,
6059,
14210,
29888,
7485,
29995,
29888,
2674,
996,
29001,
5300,
376,
23665,
428,
9681,
29908,
306,
5265,
6059,
14210,
29946,
29946,
29941,
29001,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
18527,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29929,
29906,
29929,
29946,
29945,
29918,
29941,
5754,
376,
17392,
272,
29908,
306,
5265,
6059,
14210,
29888,
7485,
29995,
29888,
2674,
996,
29001,
5300,
376,
23665,
428,
9681,
29908,
306,
5265,
6059,
14210,
29946,
29946,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the name of the title that was directed by Friz Freleng and has a production number of 443?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10361453_2 (
Attendance numeric,
Record text,
Date text,
"Vikings points" numeric,
Opponents numeric,
Opponent text,
Result text,
Game numeric
);
CREATE TABLE table_1_1143966_1 (
"Pct %" text,
Standing text,
Season text,
Points numeric,
Tied numeric,
Games numeric,
"Goals for" numeric,
Won numeric,
Lost numeric,
"Goals against" numeric
);
CREATE TABLE table_1_12221135_3 (
Operator text,
"Going to" text,
"Calling at" text,
Arrival text,
Departure text
);
CREATE TABLE table_2_18792945_3 (
Series text,
"reissue?" text,
"Release date" text,
Director text,
"Production Number" text,
Title text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the name of the title that was directed by Friz Freleng and has a production number of 443?`
```sql
| SELECT Title FROM table_2_18792945_3 WHERE "Director" ILIKE '%friz%freleng%' AND "Production Number" ILIKE '%443%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
892,
278,
23550,
310,
278,
23238,
10624,
491,
12051,
317,
913,
20595,
322,
607,
937,
263,
2859,
373,
5468,
29871,
29906,
29896,
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,
29896,
29918,
29906,
29929,
29900,
29947,
29955,
29900,
29900,
29946,
29918,
29941,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
6028,
1114,
8533,
5593,
1256,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
2525,
1573,
3900,
8533,
5593,
1256,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29945,
29900,
29941,
29946,
29918,
29946,
313,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29896,
29946,
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,
27325,
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,
22110,
892,
278,
23550,
310,
278,
23238,
10624,
491,
12051,
317,
913,
20595,
322,
607,
937,
263,
2859,
373,
5468,
29871,
29906,
29896,
29892,
29871,
29906,
29900,
29896,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29956,
20833,
491,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29929,
29900,
29947,
29955,
29900,
29900,
29946,
29918,
29941,
5754,
376,
17392,
287,
491,
29908,
306,
5265,
6059,
14210,
29954,
1727,
29995,
29903,
913,
20595,
29001,
5300,
376,
2525,
1573,
3900,
8533,
5593,
1256,
29908,
306,
5265,
6059,
14210,
29967,
11850,
29995,
29906,
29896,
24163,
29906,
29900,
29896,
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,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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,
5097,
376,
29956,
20833,
491,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29929,
29900,
29947,
29955,
29900,
29900,
29946,
29918,
29941,
5754,
376,
17392,
287,
491,
29908,
306,
5265,
6059,
14210,
29954,
1727,
29995,
29903,
913,
20595,
29001,
5300,
376,
2525,
1573,
3900,
8533,
5593,
1256,
29908,
306,
5265,
6059,
14210,
29967,
11850,
29995,
29906,
29896,
24163,
29906,
29900,
29896,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_29087004_3 (
"Written by" text,
"Canada Original Airdate" text,
"Directed by" text,
"Production Code" numeric,
Title text,
"Series #" numeric,
"United States Original Airdate" text
);
CREATE TABLE table_1_10975034_4 (
Position text,
College text,
"CFL Team" text,
Player text,
"Pick #" numeric
);
CREATE TABLE table_1_10015132_14 (
"School/Club Team" text,
"No." numeric,
"Years in Toronto" text,
Nationality text
);
```
### Answer
Here is the SQL query that answers the question:
`Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?`
```sql
| SELECT "Written by" FROM table_1_29087004_3 WHERE "Directed by" ILIKE '%Greg%Sullivan%' AND "United States Original Airdate" ILIKE '%July%21,%2012%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
2113,
278,
4259,
363,
607,
1771,
355,
273,
18989,
305,
338,
278,
28877,
29899,
786,
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,
10844,
1312,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
29943,
7261,
16985,
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,
29892,
13,
12,
8091,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29906,
29900,
29946,
29906,
29953,
29918,
29896,
313,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
20325,
16985,
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,
19204,
396,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29947,
29929,
29953,
29906,
29906,
29906,
29955,
29918,
29896,
313,
13,
12,
29925,
1745,
10883,
1426,
29892,
13,
12,
12881,
744,
1426,
29892,
13,
12,
19204,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
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,
2113,
278,
4259,
363,
607,
1771,
355,
273,
18989,
305,
338,
278,
28877,
29899,
786,
29973,
29952,
13,
28956,
2850,
13,
5097,
399,
3993,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29929,
29953,
29906,
29906,
29906,
29955,
29918,
29896,
5754,
376,
29934,
5963,
414,
29899,
786,
29908,
306,
5265,
6059,
14210,
12432,
355,
273,
29995,
29931,
948,
305,
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,
5097,
399,
3993,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29929,
29953,
29906,
29906,
29906,
29955,
29918,
29896,
5754,
376,
29934,
5963,
414,
29899,
786,
29908,
306,
5265,
6059,
14210,
12432,
355,
273,
29995,
29931,
948,
305,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who won the season for which Brendan Lynch is the runner-up?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11658094_3 (
Joined numeric,
Location text,
Nickname text,
Founded numeric,
Institution text,
Type text,
"Current Conference" text,
Enrollment numeric,
Left numeric
);
CREATE TABLE table_1_10420426_1 (
Podiums numeric,
Team text,
"F/Laps" numeric,
Races numeric,
Season text,
Wins numeric,
Position text,
Poles numeric,
Points numeric
);
CREATE TABLE table_1_12159115_2 (
"Directed by" text,
"Series #" numeric,
Title text,
"U.S. viewers (millions)" text,
"Production code" text,
"Original air date" text,
"Written by" text
);
CREATE TABLE table_1_28962227_1 (
Premiere text,
Finale text,
Series numeric,
Winner text,
"Runners-up" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who won the season for which Brendan Lynch is the runner-up?`
```sql
| SELECT Winner FROM table_1_28962227_1 WHERE "Runners-up" ILIKE '%Brendan%Lynch%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1880,
15121,
3885,
363,
8158,
310,
29871,
29953,
29946,
29899,
29955,
29946,
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,
29945,
29896,
29906,
29941,
29955,
29918,
29906,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
14958,
936,
17838,
322,
4823,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29896,
29900,
29941,
29955,
29906,
29929,
29918,
29947,
313,
13,
12,
29908,
6508,
29914,
4165,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
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,
2539,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29941,
29906,
29953,
29955,
29918,
29896,
313,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
6508,
1426,
29892,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29906,
29906,
29945,
29900,
29953,
29918,
29953,
313,
13,
12,
29908,
29903,
16668,
18372,
9404,
29908,
16985,
29892,
13,
12,
29908,
15790,
12458,
29908,
16985,
29892,
13,
12,
29908,
6489,
568,
382,
523,
29908,
16985,
29892,
13,
12,
29908,
29934,
618,
310,
29871,
29941,
29906,
29908,
16985,
29892,
13,
12,
29908,
29937,
310,
350,
4841,
29908,
16985,
29892,
13,
12,
29908,
1451,
3103,
3527,
8448,
29908,
16985,
29892,
13,
12,
29908,
17734,
1273,
29908,
1426,
29892,
13,
12,
1168,
1659,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29945,
29896,
29896,
29900,
29918,
29955,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
8140,
2667,
16985,
29892,
13,
12,
29908,
12739,
319,
19698,
29908,
1426,
29892,
13,
12,
29908,
29954,
1280,
7412,
287,
29908,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29931,
15806,
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,
1880,
15121,
3885,
363,
8158,
310,
29871,
29953,
29946,
29899,
29955,
29946,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
16382,
15121,
3885,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29896,
29900,
29941,
29955,
29906,
29929,
29918,
29947,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29953,
29946,
29899,
29955,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
16382,
15121,
3885,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29896,
29900,
29941,
29955,
29906,
29929,
29918,
29947,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29953,
29946,
29899,
29955,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the high rebounds for score of 64-74`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11951237_2 (
"Written by" text,
"Original air date" text,
"Musical guest and song" text,
"Directed by" text,
"Season #" numeric,
"Production code" text,
Title text,
"Series #" numeric
);
CREATE TABLE table_1_17103729_8 (
"Location/Attendance" text,
"High rebounds" text,
"High points" text,
"High assists" text,
Score text,
Date text,
Game numeric,
Opponent text,
Record text
);
CREATE TABLE table_1_11603267_1 (
Winner text,
Location text,
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Tournament text
);
CREATE TABLE table_1_10722506_6 (
"Sweet Sixteen" numeric,
"Final Four" numeric,
"Elite Eight" numeric,
"Round of 32" numeric,
"# of Bids" numeric,
"Championship Game" numeric,
"Win %" text,
Conference text
);
CREATE TABLE table_1_1255110_7 (
Wins numeric,
"Goals Against" numeric,
Minutes numeric,
"GA Average" text,
"Games Played" numeric,
Player text,
"No." numeric,
Club text,
Loses numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Name the high rebounds for score of 64-74`
```sql
| SELECT COUNT("High rebounds") FROM table_1_17103729_8 WHERE "Score" ILIKE '%64-74%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
27207,
3748,
297,
3087,
8970,
29892,
12766,
1156,
29871,
29896,
29929,
29953,
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,
29945,
29896,
29929,
29900,
29941,
29946,
29953,
29918,
29906,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
29933,
340,
29880,
3748,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4165,
21642,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29900,
29906,
29900,
29955,
29918,
29947,
313,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29908,
29164,
8276,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
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,
471,
278,
27207,
3748,
297,
3087,
8970,
29892,
12766,
1156,
29871,
29896,
29929,
29953,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29933,
340,
29880,
3748,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29929,
29900,
29941,
29946,
29953,
29918,
29906,
5754,
376,
2008,
1658,
29908,
1405,
525,
29896,
29929,
29953,
29947,
29915,
5300,
376,
6508,
29908,
306,
5265,
6059,
14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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,
5097,
376,
29933,
340,
29880,
3748,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29929,
29900,
29941,
29946,
29953,
29918,
29906,
5754,
376,
2008,
1658,
29908,
1405,
525,
29896,
29929,
29953,
29947,
29915,
5300,
376,
6508,
29908,
306,
5265,
6059,
14210,
28455,
29995,
16799,
3476,
1111,
24163,
1113,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the Bowl game in San Francisco, CA after 1968?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15190346_2 (
Result text,
"Bowl game" text,
Season numeric,
Stadium text,
Location text,
Opponent text,
Attendance text
);
CREATE TABLE table_1_10120207_8 (
"Season finale" text,
"Season premiere" text,
"Timeslot ( ET )" text,
Rank text,
"Viewers (millions)" text,
"TV season" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the Bowl game in San Francisco, CA after 1968?`
```sql
| SELECT "Bowl game" FROM table_2_15190346_2 WHERE "Season" > '1968' AND "Location" ILIKE '%san%francisco,%ca%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
6588,
6198,
639,
1004,
3097,
411,
263,
9241,
2068,
7968,
1135,
29871,
29896,
29889,
29896,
29906,
322,
263,
7101,
17711,
6198,
304,
1302,
2496,
7968,
1135,
29871,
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,
29906,
29896,
29941,
29946,
29941,
29947,
29941,
29918,
29896,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
22406,
472,
15069,
2633,
29908,
1426,
29892,
13,
12,
29908,
5044,
310,
1840,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
4892,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
15069,
2633,
29908,
1426,
29892,
13,
12,
29908,
6513,
310,
3240,
19211,
29908,
1426,
29892,
13,
12,
29931,
361,
267,
8357,
1426,
29892,
13,
12,
13504,
1693,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29945,
29945,
29946,
29900,
29955,
29918,
29896,
313,
13,
12,
24095,
1426,
29892,
13,
12,
29908,
1666,
391,
2068,
313,
29896,
29900,
13935,
29953,
288,
7184,
29899,
262,
6609,
5513,
16985,
29892,
13,
12,
29908,
18278,
639,
1004,
3097,
29908,
16985,
29892,
13,
12,
29908,
18498,
2161,
17711,
29892,
6376,
1230,
304,
1302,
2496,
29908,
16985,
29892,
13,
12,
29908,
29903,
9089,
10809,
29892,
22831,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29946,
313,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29946,
29946,
29945,
29906,
29918,
29896,
313,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29923,
12907,
3611,
29908,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29947,
29945,
29941,
29896,
29941,
29918,
29906,
313,
13,
12,
29908,
4537,
310,
14433,
29908,
16985,
29892,
13,
12,
4537,
16985,
29892,
13,
12,
29908,
4537,
310,
26091,
29908,
16985,
29892,
13,
12,
29908,
1256,
310,
9512,
29908,
1426,
29892,
13,
12,
978,
1426,
29892,
13,
12,
29908,
1256,
310,
4892,
30087,
29908,
1426,
29892,
13,
12,
29908,
1256,
310,
12060,
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,
6588,
6198,
639,
1004,
3097,
411,
263,
9241,
2068,
7968,
1135,
29871,
29896,
29889,
29896,
29906,
322,
263,
7101,
17711,
6198,
304,
1302,
2496,
7968,
1135,
29871,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
703,
18278,
639,
1004,
3097,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29945,
29945,
29946,
29900,
29955,
29918,
29896,
5754,
376,
1666,
391,
2068,
313,
29896,
29900,
13935,
29953,
288,
7184,
29899,
262,
6609,
5513,
529,
525,
29896,
29889,
29896,
29906,
29915,
5300,
376,
18498,
2161,
17711,
29892,
6376,
1230,
304,
1302,
2496,
29908,
529,
525,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
703,
18278,
639,
1004,
3097,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29945,
29945,
29946,
29900,
29955,
29918,
29896,
5754,
376,
1666,
391,
2068,
313,
29896,
29900,
13935,
29953,
288,
7184,
29899,
262,
6609,
5513,
529,
525,
29896,
29889,
29896,
29906,
29915,
5300,
376,
18498,
2161,
17711,
29892,
6376,
1230,
304,
1302,
2496,
29908,
529,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the average relative permeability with a resistivity smaller than 1.12 and a surface resistance relative to copper smaller than 1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12134383_1 (
"#" numeric,
"Age at inauguration" text,
"End of term" text,
"Date of death" text,
"Date of inauguration" text,
"Length of retirement" text,
Lifespan text,
President text,
"Date of birth" text
);
CREATE TABLE table_2_1255407_1 (
Material text,
"Resistivity (10 −6 ohm-inches)" numeric,
"Relative permeability" numeric,
"Surface resistance, Relative to copper" numeric,
"Skin depth, inches" numeric
);
CREATE TABLE table_1_11545282_4 (
"Years for Jazz" text,
Player text,
"No." numeric,
Nationality text,
"School/Club Team" text,
Position text
);
CREATE TABLE table_1_11404452_1 (
"U.S. viewers (millions)" text,
"Series #" numeric,
"Episode title" text,
"Writer(s)" text,
"Original air date" text,
Director text
);
CREATE TABLE table_1_11585313_2 (
"number of goals" numeric,
number numeric,
"number of caps" numeric,
"date of debut" text,
name text,
"date of death†" text,
"date of birth" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the average relative permeability with a resistivity smaller than 1.12 and a surface resistance relative to copper smaller than 1?`
```sql
| SELECT AVG("Relative permeability") FROM table_2_1255407_1 WHERE "Resistivity (10 −6 ohm-inches)" < '1.12' AND "Surface resistance, Relative to copper" < '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1451,
332,
1794,
756,
825,
408,
278,
2846,
342,
1353,
310,
3546,
272,
1078,
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,
29941,
29945,
29941,
29953,
29918,
29896,
29896,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29900,
29947,
29953,
29955,
29953,
29918,
29955,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29953,
313,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29941,
313,
13,
12,
29908,
19204,
694,
1213,
16985,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29900,
29947,
29953,
29946,
29900,
29918,
29896,
313,
13,
12,
29908,
12075,
1981,
3819,
1353,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
3546,
272,
1078,
313,
29906,
29900,
29900,
29929,
5513,
16985,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29908,
1666,
9841,
363,
313,
12314,
847,
6850,
847,
8516,
5513,
1426,
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,
1451,
332,
1794,
756,
825,
408,
278,
2846,
342,
1353,
310,
3546,
272,
1078,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
4557,
310,
3546,
272,
1078,
313,
29906,
29900,
29900,
29929,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29900,
29947,
29953,
29946,
29900,
29918,
29896,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
305,
332,
1794,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
703,
4557,
310,
3546,
272,
1078,
313,
29906,
29900,
29900,
29929,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29900,
29947,
29953,
29946,
29900,
29918,
29896,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
305,
332,
1794,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Churai has what as the fewest number of electorates?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11963536_11 (
Series text,
"High rebounds" text,
Game numeric,
"Location Attendance" text,
Score text,
"High points" text,
Team text,
"High assists" text,
Date text
);
CREATE TABLE table_1_10908676_7 (
"Written by" text,
"Original air date" text,
"No. in series" numeric,
"Directed by" text,
Title text,
"No. in season" numeric
);
CREATE TABLE table_1_11545282_6 (
"Years for Jazz" text,
"School/Club Team" text,
Player text,
Position text,
Nationality text,
"No." numeric
);
CREATE TABLE table_1_11630008_3 (
"Series no." numeric,
"Production Code" numeric,
"Original air date" text,
"Directed by" text
);
CREATE TABLE table_2_18508640_1 (
"Constituency number" text,
"Number of electorates (2009)" numeric,
District text,
"Reserved for ( SC / ST /None)" text,
Name text
);
```
### Answer
Here is the SQL query that answers the question:
`Churai has what as the fewest number of electorates?`
```sql
| SELECT MIN("Number of electorates (2009)") FROM table_2_18508640_1 WHERE "Name" ILIKE '%churai%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
20084,
892,
10624,
491,
19135,
15612,
555,
860,
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,
29941,
29896,
29953,
29918,
29945,
313,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
931,
313,
29879,
5513,
1426,
29892,
13,
12,
29908,
29956,
513,
313,
29885,
29914,
29879,
5513,
1426,
29892,
13,
12,
29934,
804,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29946,
29945,
29929,
29918,
29896,
313,
13,
12,
29908,
3782,
29889,
5373,
2782,
29908,
16985,
29892,
13,
12,
18457,
1426,
29892,
13,
12,
3047,
19811,
1233,
16985,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
2928,
3518,
1133,
16985,
29892,
13,
12,
29908,
4557,
12146,
29908,
1426,
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,
18552,
292,
1426,
29892,
13,
12,
5261,
3825,
1426,
29892,
13,
12,
1523,
2037,
1426,
29892,
13,
12,
8325,
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,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29945,
29945,
29929,
29941,
29941,
29918,
29896,
313,
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,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29896,
29929,
29945,
29896,
29945,
29918,
29946,
313,
13,
12,
29908,
11536,
1776,
414,
313,
262,
14746,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
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,
8809,
436,
20084,
892,
10624,
491,
19135,
15612,
555,
860,
29973,
29952,
13,
28956,
2850,
13,
5097,
18527,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29945,
29945,
29929,
29941,
29941,
29918,
29896,
5754,
376,
17392,
287,
491,
29908,
306,
5265,
6059,
14210,
29940,
295,
1100,
29995,
27297,
29907,
555,
860,
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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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,
5097,
18527,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29941,
29945,
29945,
29929,
29941,
29941,
29918,
29896,
5754,
376,
17392,
287,
491,
29908,
306,
5265,
6059,
14210,
29940,
295,
1100,
29995,
27297,
29907,
555,
860,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which seasons were directed by Nelson McCormick?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1231316_5 (
Athlete text,
Nation text,
Date text,
Location text,
"Fastest time (s)" text,
"Wind (m/s)" text,
Rank numeric
);
CREATE TABLE table_1_1081459_1 (
"No. Built" numeric,
Region text,
Withdrawn numeric,
Builder text,
Introduced numeric,
"Number Range" text
);
CREATE TABLE table_1_11793221_2 (
Killed text,
Wounded text,
Missing text,
Commander text,
Complement text,
Unit text
);
CREATE TABLE table_1_11206916_2 (
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Outgoing manager" text,
"Manner of departure" text,
Team text
);
CREATE TABLE table_1_17355933_1 (
"Directed by" text,
"Written by" text,
"Original air date" text,
"Season #" numeric,
Title text,
"Series #" numeric
);
CREATE TABLE table_1_12419515_4 (
"Total viewers (in millions)" text,
"Directed by" text,
"Original air date" text,
"Season #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which seasons were directed by Nelson McCormick?`
```sql
| SELECT Title FROM table_1_17355933_1 WHERE "Directed by" ILIKE '%Nelson%McCormick%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
22904,
1308,
313,
8848,
29897,
756,
263,
4408,
310,
394,
655,
29899,
1050,
29887,
3169,
3814,
277,
423,
29892,
322,
263,
8905,
4257,
7968,
1135,
29871,
29896,
29929,
29929,
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,
29896,
29906,
29900,
29906,
29900,
29955,
29918,
29947,
313,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
29908,
29164,
8276,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29955,
29947,
29946,
29918,
29955,
313,
13,
12,
13992,
4279,
1426,
29892,
13,
12,
29908,
29928,
2829,
1308,
313,
8848,
5513,
16985,
29892,
13,
12,
29908,
12883,
4257,
29908,
16985,
29892,
13,
12,
8208,
4279,
1426,
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,
8809,
436,
22904,
1308,
313,
8848,
29897,
756,
263,
4408,
310,
394,
655,
29899,
1050,
29887,
3169,
3814,
277,
423,
29892,
322,
263,
8905,
4257,
7968,
1135,
29871,
29896,
29929,
29929,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
29928,
2829,
1308,
313,
8848,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29955,
29947,
29946,
29918,
29955,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
284,
655,
29899,
1050,
29887,
3169,
29995,
9018,
277,
423,
29001,
5300,
376,
12883,
4257,
29908,
529,
525,
29896,
29929,
29929,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
703,
29928,
2829,
1308,
313,
8848,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29955,
29947,
29946,
29918,
29955,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
284,
655,
29899,
1050,
29887,
3169,
29995,
9018,
277,
423,
29001,
5300,
376,
12883,
4257,
29908,
529,
525,
29896,
29929,
29929,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10120207_8 (
"Season finale" text,
"Timeslot ( ET )" text,
"Viewers (millions)" text,
Rank text,
"TV season" text,
"Season premiere" text,
Season numeric
);
CREATE TABLE table_2_16799784_7 (
Latitude text,
"Diameter (km)" numeric,
"Year named" numeric,
Longitude text,
Name text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997?`
```sql
| SELECT MAX("Diameter (km)") FROM table_2_16799784_7 WHERE "Name" ILIKE '%alma-merghen%planitia%' AND "Year named" < '1997' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
3694,
505,
5322,
3956,
3712,
408,
278,
14297,
322,
5490,
29871,
29906,
29955,
29892,
29871,
29906,
29900,
29900,
29955,
471,
278,
11456,
5730,
406,
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,
29929,
29947,
29906,
29953,
29929,
29929,
29918,
29896,
313,
13,
12,
29908,
29928,
10699,
6507,
29908,
1426,
29892,
13,
12,
29924,
1662,
1008,
1426,
29892,
13,
12,
29908,
29911,
6146,
4924,
6097,
10883,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
23665,
2265,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
10507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29929,
29896,
29947,
29946,
29896,
29918,
29906,
313,
13,
12,
4435,
1426,
29892,
13,
12,
29923,
29965,
1426,
29892,
13,
12,
29940,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
4300,
571,
3474,
29908,
1426,
29892,
13,
12,
29908,
4300,
571,
27684,
29908,
1426,
29892,
13,
12,
29908,
29924,
21081,
515,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29925,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
5044,
29879,
16985,
29892,
13,
12,
22406,
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,
3694,
505,
5322,
3956,
3712,
408,
278,
14297,
322,
5490,
29871,
29906,
29955,
29892,
29871,
29906,
29900,
29900,
29955,
471,
278,
11456,
5730,
406,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29937,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29929,
29947,
29906,
29953,
29929,
29929,
29918,
29896,
5754,
376,
23665,
2265,
29908,
306,
5265,
6059,
14210,
5914,
793,
29995,
20392,
3712,
29001,
5300,
376,
29911,
6146,
4924,
6097,
10883,
29908,
306,
5265,
6059,
14210,
29967,
15623,
653,
29995,
29906,
29955,
24163,
29906,
29900,
29900,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29937,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29929,
29947,
29906,
29953,
29929,
29929,
29918,
29896,
5754,
376,
23665,
2265,
29908,
306,
5265,
6059,
14210,
5914,
793,
29995,
20392,
3712,
29001,
5300,
376,
29911,
6146,
4924,
6097,
10883,
29908,
306,
5265,
6059,
14210,
29967,
15623,
653,
29995,
29906,
29955,
24163,
29906,
29900,
29900,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_19982699_1 (
"DVD release" text,
Maneater text,
"Television Premiere" text,
"#" numeric,
Director text,
Producer text,
Title text,
Writer text
);
CREATE TABLE table_1_11891841_2 (
Source text,
EU text,
N numeric,
Name text,
"Transfer window" text,
"Transfer fee" text,
"Moving from" text,
Country text,
P text,
Type text,
Ends numeric,
Age numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?`
```sql
| SELECT MIN(#) FROM table_1_19982699_1 WHERE "Producer" ILIKE '%Charles%Salmon%' AND "Television Premiere" ILIKE '%January%27,%2007%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
892,
599,
278,
21669,
746,
278,
937,
11467,
1629,
471,
29871,
29896,
29929,
29953,
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,
29941,
29946,
29896,
29947,
29947,
29946,
29918,
29906,
29900,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
797,
29883,
3774,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29953,
313,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29900,
29941,
29953,
29947,
29918,
29896,
313,
13,
12,
29908,
14058,
22125,
292,
313,
29896,
5513,
1426,
29892,
13,
12,
29908,
3981,
2722,
4559,
29881,
29908,
16985,
29892,
13,
12,
29908,
3220,
313,
12883,
5513,
1426,
29892,
13,
12,
29908,
29934,
804,
292,
365,
29889,
29909,
29889,
313,
29906,
5513,
1426,
29892,
13,
12,
29908,
12883,
310,
17745,
29908,
1426,
29892,
13,
12,
29908,
13720,
847,
14059,
847,
7562,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29953,
29946,
29955,
29946,
29953,
29918,
29896,
313,
13,
12,
29908,
29950,
1709,
4408,
29908,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
1625,
2470,
1426,
29892,
13,
12,
29908,
22175,
1156,
29908,
1426,
29892,
13,
12,
1523,
3283,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29896,
29900,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
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,
22110,
892,
599,
278,
21669,
746,
278,
937,
11467,
1629,
471,
29871,
29896,
29929,
29953,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
315,
5380,
1078,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29947,
29947,
29946,
29918,
29906,
29900,
5754,
376,
6730,
11467,
29908,
353,
525,
29896,
29929,
29953,
29896,
29915,
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,
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,
5097,
315,
5380,
1078,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29947,
29947,
29946,
29918,
29906,
29900,
5754,
376,
6730,
11467,
29908,
353,
525,
29896,
29929,
29953,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who were all the candidates when the first elected year was 1961?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1341884_20 (
Result text,
"First elected" numeric,
District text,
Candidates text,
Party text,
Incumbent text
);
CREATE TABLE table_1_10470082_6 (
Storyteller text,
Villains text,
Writer text,
"No." numeric,
Director text,
"US air date" text,
Title text,
"#" numeric
);
CREATE TABLE table_1_12000368_1 (
"World Ranking (1)" text,
"Countries sampled" numeric,
"Index (Year)" text,
"Ranking L.A. (2)" text,
"Year of publication" text,
"Author / Editor / Source" text
);
CREATE TABLE table_1_11464746_1 (
"House Name" text,
Founded numeric,
Colours text,
"Named after" text,
Composition text
);
CREATE TABLE table_1_11960610_10 (
"Location Attendance" text,
Record text,
"High points" text,
"High assists" text,
Game numeric,
Score text,
"High rebounds" text,
Team text,
Date text
);
```
### Answer
Here is the SQL query that answers the question:
`Who were all the candidates when the first elected year was 1961?`
```sql
| SELECT Candidates FROM table_1_1341884_20 WHERE "First elected" = '1961' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
15970,
756,
278,
29871,
29896,
7306,
322,
278,
2602,
338,
285,
29893,
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,
29896,
29900,
29900,
29918,
29896,
29953,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29941,
29929,
29953,
29941,
29955,
29947,
29896,
29918,
29906,
313,
13,
12,
29908,
29909,
386,
1026,
983,
6413,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
8140,
2667,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
2052,
799,
2925,
16985,
29892,
13,
12,
7900,
2879,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8120,
1338,
16985,
29892,
13,
12,
4763,
29879,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
15970,
756,
278,
29871,
29896,
7306,
322,
278,
2602,
338,
285,
29893,
29973,
29952,
13,
28956,
2850,
13,
5097,
4408,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29929,
29953,
29941,
29955,
29947,
29896,
29918,
29906,
5754,
376,
8120,
1338,
29908,
353,
525,
29896,
29915,
5300,
376,
8003,
29908,
306,
5265,
6059,
14210,
29943,
29956,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29941,
29929,
29953,
29941,
29955,
29947,
29896,
29918,
29906,
5754,
376,
8120,
1338,
29908,
353,
525,
29896,
29915,
5300,
376,
8003,
29908,
306,
5265,
6059,
14210,
29943,
29956,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`who has the 1 goal and the position is fw?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_16 (
Player text,
Hometown text,
"MLB Draft" text,
School text
);
CREATE TABLE table_1_23963781_2 (
"Athletica career" text,
Name text,
Minutes numeric,
Position text,
Appearances numeric,
Assists numeric,
Nationality text,
Goals numeric,
Starts numeric
);
```
### Answer
Here is the SQL query that answers the question:
`who has the 1 goal and the position is fw?`
```sql
| SELECT Name FROM table_1_23963781_2 WHERE "Goals" = '1' AND "Position" ILIKE '%FW%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4943,
4259,
3743,
1708,
22450,
297,
8542,
2186,
29879,
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,
29900,
29896,
29896,
29941,
29918,
29945,
313,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
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,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29900,
29941,
29945,
29918,
29896,
313,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29953,
29946,
29906,
29947,
29918,
29906,
313,
13,
12,
29908,
6730,
29899,
1990,
10638,
29908,
1426,
29892,
13,
12,
29908,
29956,
272,
2395,
17900,
7087,
29908,
16985,
29892,
13,
12,
29908,
1170,
310,
5962,
29908,
1426,
29892,
13,
12,
29908,
1293,
319,
10638,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29956,
272,
2395,
285,
29899,
29883,
7087,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29896,
29896,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
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,
29908,
16382,
3291,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29896,
29929,
29947,
29955,
29918,
29896,
313,
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,
29892,
13,
12,
29908,
4597,
1070,
24791,
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,
4943,
4259,
3743,
1708,
22450,
297,
8542,
2186,
29879,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
4597,
1070,
24791,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29896,
29929,
29947,
29955,
29918,
29896,
5754,
376,
13454,
22450,
29908,
306,
5265,
6059,
14210,
12596,
2459,
29995,
15790,
29879,
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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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4597,
1070,
24791,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29896,
29929,
29947,
29955,
29918,
29896,
5754,
376,
13454,
22450,
29908,
306,
5265,
6059,
14210,
12596,
2459,
29995,
15790,
29879,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which regular season contains playoffs in division finals?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140113_5 (
Date text,
Report text,
"Race Name" text,
Constructor text,
Circuit text,
"Winning driver" text
);
CREATE TABLE table_1_11734041_15 (
"Height in Ft." text,
"School/Club Team/Country" text,
Player text,
"Years for Rockets" text,
"No.(s)" numeric,
Position text
);
CREATE TABLE table_1_1214035_1 (
Division text,
"Open Cup" text,
"Regular Season" text
);
CREATE TABLE table_1_1156428_2 (
"First-class span" text,
"Worcs LA matches" numeric,
"Name of ground" text,
"List A span" text,
Location text,
"Worcs f-c matches" numeric
);
CREATE TABLE table_1_11964154_11 (
Game numeric,
"Location Attendance" text,
Score text,
Record text,
"High rebounds" text,
"High assists" text,
Team text,
"High points" text
);
CREATE TABLE table_1_1241987_1 (
League text,
"Open Cup" text,
Year numeric,
Playoffs text,
Division numeric,
"Regular Season" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which regular season contains playoffs in division finals?`
```sql
| SELECT "Regular Season" FROM table_1_1241987_1 WHERE "Playoffs" ILIKE '%Division%Finals%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
1871,
1288,
25778,
9851,
365,
1475,
310,
278,
8025,
411,
4236,
2931,
310,
29871,
29941,
29906,
322,
756,
350,
313,
10945,
29897,
3918,
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,
29941,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29953,
29900,
29900,
29941,
29929,
29918,
29953,
313,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29906,
313,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29943,
16750,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
29903,
1251,
11427,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29929,
29906,
29953,
29906,
29946,
29900,
29918,
29896,
313,
13,
12,
29908,
3306,
1788,
29908,
1426,
29892,
13,
12,
29908,
21591,
6554,
518,
341,
2966,
29914,
29879,
4514,
29908,
1426,
29892,
13,
12,
29908,
7976,
29889,
2896,
21706,
313,
546,
1813,
1948,
5513,
16985,
29892,
13,
12,
15449,
1426,
29892,
13,
12,
29908,
29933,
1169,
639,
1196,
313,
18271,
1065,
29899,
262,
5513,
16985,
29892,
13,
12,
29956,
1351,
689,
1426,
29892,
13,
12,
29908,
797,
689,
1288,
25778,
9851,
365,
1475,
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,
1871,
1288,
25778,
9851,
365,
1475,
310,
278,
8025,
411,
4236,
2931,
310,
29871,
29941,
29906,
322,
756,
350,
313,
10945,
29897,
3918,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
797,
689,
1288,
25778,
9851,
365,
1475,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29906,
29953,
29906,
29946,
29900,
29918,
29896,
5754,
376,
7976,
29889,
2896,
21706,
313,
546,
1813,
1948,
5513,
353,
525,
29941,
29906,
29915,
5300,
376,
15449,
29908,
306,
5265,
6059,
14210,
29933,
29995,
29898,
10945,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
376,
797,
689,
1288,
25778,
9851,
365,
1475,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29906,
29953,
29906,
29946,
29900,
29918,
29896,
5754,
376,
7976,
29889,
2896,
21706,
313,
546,
1813,
1948,
5513,
353,
525,
29941,
29906,
29915,
5300,
376,
15449,
29908,
306,
5265,
6059,
14210,
29933,
29995,
29898,
10945,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10015132_3 (
"No." numeric,
"School/Club Team" text,
Position text,
Player text,
"Years in Toronto" text,
Nationality text
);
CREATE TABLE table_1_10960039_6 (
"CFL Team" text,
College text,
"Pick #" numeric,
Position text
);
CREATE TABLE table_1_12407546_2 (
Athlete text,
"#" numeric,
Fencing text,
Total numeric,
Riding text,
Running text,
Swimming text,
Shooting text
);
CREATE TABLE table_1_1926240_1 (
"Color system" text,
"Bit rate [ Mbit/s ]" text,
"Max. Characters (per page row)" numeric,
Standard text,
"Bits per line (including run-in)" numeric,
Waveform text,
"Informational CVBS Lines" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard?`
```sql
| SELECT "Informational CVBS Lines" FROM table_1_1926240_1 WHERE "Max. Characters (per page row)" = '32' AND "Standard" ILIKE '%B%(global)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19087,
5253,
4559,
29881,
310,
3234,
29871,
235,
149,
156,
234,
140,
158,
234,
140,
143,
232,
175,
179,
232,
188,
191,
232,
136,
149,
31361,
30525,
231,
188,
182,
234,
181,
140,
1577,
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,
29906,
29896,
29947,
29929,
29918,
29896,
313,
13,
12,
29908,
21472,
29914,
29878,
3358,
29908,
1426,
29892,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
6802,
29878,
3358,
29908,
1426,
29892,
13,
12,
12415,
5946,
1426,
29892,
13,
12,
29908,
29907,
2904,
513,
414,
29914,
1440,
1960,
29908,
1426,
29892,
13,
12,
29908,
3195,
29914,
12412,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29906,
29941,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
15637,
313,
30073,
29907,
5513,
1426,
29892,
13,
12,
10923,
545,
1426,
29892,
13,
12,
29908,
3253,
13244,
573,
5167,
29908,
1426,
29892,
13,
12,
29908,
2481,
29898,
7898,
5513,
1426,
29892,
13,
12,
29908,
22400,
5167,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29929,
29946,
29941,
29946,
29946,
29946,
29918,
29896,
313,
13,
12,
29908,
29903,
9422,
5229,
29908,
16985,
29892,
13,
12,
29908,
29924,
295,
314,
457,
2793,
29898,
29885,
29887,
29914,
9415,
5513,
1426,
29892,
13,
12,
7566,
1426,
29892,
13,
12,
29908,
29903,
9422,
4586,
29908,
16985,
29892,
13,
12,
23665,
2265,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29896,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
29940,
5688,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29953,
29955,
29947,
29955,
29918,
29945,
313,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
16382,
342,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29900,
29941,
29953,
29946,
29918,
29906,
313,
13,
12,
29908,
24938,
4135,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
7827,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
5145,
5513,
16985,
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,
25006,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
1273,
29908,
1426,
29892,
13,
12,
29908,
5531,
27577,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
29878,
3631,
5513,
16985,
29892,
13,
12,
29908,
9662,
335,
2738,
2318,
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,
19087,
5253,
4559,
29881,
310,
3234,
29871,
235,
149,
156,
234,
140,
158,
234,
140,
143,
232,
175,
179,
232,
188,
191,
232,
136,
149,
31361,
30525,
231,
188,
182,
234,
181,
140,
1577,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
29903,
9422,
4586,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29929,
29946,
29941,
29946,
29946,
29946,
29918,
29896,
5754,
376,
7566,
29908,
306,
5265,
6059,
14210,
235,
149,
156,
234,
140,
158,
234,
140,
143,
232,
175,
179,
232,
188,
191,
232,
136,
149,
31361,
30525,
231,
188,
182,
234,
181,
140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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,
5097,
341,
1177,
703,
29903,
9422,
4586,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29929,
29946,
29941,
29946,
29946,
29946,
29918,
29896,
5754,
376,
7566,
29908,
306,
5265,
6059,
14210,
235,
149,
156,
234,
140,
158,
234,
140,
143,
232,
175,
179,
232,
188,
191,
232,
136,
149,
31361,
30525,
231,
188,
182,
234,
181,
140,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the smallest amount sampled of product 蒙牛牌嬰幼兒配方乳粉 ?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1212189_1 (
"Power/rpm" text,
"Torque (Nm)/rpm" text,
Capacity text,
"Cylinders/Valves" text,
"Model/Engine" text
);
CREATE TABLE table_1_10262329_1 (
"Temp (°C)" text,
Pressure text,
"Adhesive Type" text,
"Time(Sec)" text,
"Assembly Type" text
);
CREATE TABLE table_1_18943444_1 (
"Samples failed" numeric,
"Melamine content(mg/kg)" text,
Product text,
"Samples taken" numeric,
Producer text
);
CREATE TABLE table_1_11677760_1 (
Hometown text,
College text,
Player text,
School text,
Year text,
"NBA Draft" text
);
CREATE TABLE table_1_11206787_5 (
Lowest numeric,
Average numeric,
Stadium text,
Highest numeric,
Team text
);
CREATE TABLE table_1_10710364_2 (
"Literacy (%)" text,
"Sex ratio (total)" numeric,
"Sex ratio (child)" numeric,
"Growth (1991–2001)" text,
"Sex ratio (urban)" numeric,
"Population %" text,
"Work participation (%)" text,
"Sex ratio (rural)" numeric,
"Religious group" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the smallest amount sampled of product 蒙牛牌嬰幼兒配方乳粉 ?`
```sql
| SELECT MIN("Samples taken") FROM table_1_18943444_1 WHERE "Product" ILIKE '%蒙牛牌嬰幼兒配方乳粉%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29902,
864,
304,
1074,
278,
1121,
363,
6003,
434,
310,
302,
322,
14333,
749,
901,
1135,
29871,
29906,
29900,
29892,
29953,
29953,
29946,
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,
29929,
29906,
29945,
29941,
29953,
29918,
29947,
313,
13,
12,
19409,
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,
29908,
8003,
297,
1591,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29900,
29955,
29918,
29906,
313,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
1281,
18769,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29947,
29953,
29906,
29941,
29955,
29918,
29896,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29906,
29945,
29900,
617,
19576,
29908,
1426,
29892,
13,
12,
29908,
29924,
3747,
19903,
19576,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29896,
29906,
29945,
617,
19576,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29896,
29953,
29941,
29945,
29906,
29896,
29918,
29945,
313,
13,
12,
2539,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29934,
618,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29902,
864,
304,
1074,
278,
1121,
363,
6003,
434,
310,
302,
322,
14333,
749,
901,
1135,
29871,
29906,
29900,
29892,
29953,
29953,
29946,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29896,
29953,
29941,
29945,
29906,
29896,
29918,
29945,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
29876,
29001,
5300,
376,
4165,
21642,
29908,
1405,
525,
29906,
29900,
29892,
29953,
29953,
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,
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,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29896,
29953,
29941,
29945,
29906,
29896,
29918,
29945,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
29876,
29001,
5300,
376,
4165,
21642,
29908,
1405,
525,
29906,
29900,
29892,
29953,
29953,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`I want to see the result for venue of n and attendance more than 20,664`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10592536_8 (
Team text,
"Date of appointment" text,
"Replaced by" text,
"Date of vacancy" text,
"Position in table" text,
"Outgoing manager" text,
"Manner of departure" text
);
CREATE TABLE table_1_1137707_2 (
"Grand Prix" text,
"Winning Constructor" text,
"Winning Driver" text,
"Fastest Lap" text,
Report text,
Location text,
"Pole Position" text
);
CREATE TABLE table_1_12186237_1 (
Date text,
"250cc winner" text,
"MotoGP winner" text,
Circuit text,
"125cc winner" text
);
CREATE TABLE table_2_11163521_5 (
Date text,
Result text,
Venue text,
Attendance numeric,
Round text,
Opponent text
);
```
### Answer
Here is the SQL query that answers the question:
`I want to see the result for venue of n and attendance more than 20,664`
```sql
| SELECT RESULT FROM table_2_11163521_5 WHERE "Venue" ILIKE '%n%' AND "Attendance" > '20,664' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
11822,
6345,
373,
5846,
29871,
29896,
29955,
29892,
29871,
29896,
29947,
29955,
29946,
4687,
1009,
1840,
1434,
29871,
29896,
29929,
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,
29946,
29900,
29896,
29900,
29945,
29918,
29953,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29941,
29941,
29929,
29953,
29918,
29945,
313,
13,
12,
29908,
8120,
1338,
1152,
29908,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
29892,
13,
12,
29908,
8120,
1338,
1152,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
7740,
29887,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29945,
29941,
29953,
29918,
29941,
313,
13,
12,
29908,
14343,
1095,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
14343,
1369,
29908,
16985,
29892,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
14450,
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,
13599,
5648,
313,
360,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
16885,
310,
19405,
29914,
9802,
300,
29908,
1426,
29892,
13,
12,
22814,
1426,
29892,
13,
12,
29908,
12883,
310,
23736,
362,
29908,
1426,
29892,
13,
12,
29908,
29949,
1233,
287,
1951,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29900,
29947,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
5371,
3118,
3001,
1776,
292,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29933,
9972,
4384,
2635,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
7803,
3001,
1776,
292,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
7803,
22125,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29896,
29941,
29955,
29953,
29918,
29941,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
16985,
29892,
13,
12,
29908,
19204,
14055,
396,
29908,
16985,
29892,
13,
12,
29908,
2008,
1658,
29871,
29941,
14055,
396,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
26036,
5593,
1256,
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,
11822,
6345,
373,
5846,
29871,
29896,
29955,
29892,
29871,
29896,
29947,
29955,
29946,
4687,
1009,
1840,
1434,
29871,
29896,
29929,
29947,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
4408,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29945,
29941,
29953,
29918,
29941,
5754,
376,
14343,
1369,
29908,
529,
525,
29896,
29929,
29947,
29946,
29915,
5300,
376,
2539,
310,
350,
7515,
29908,
306,
5265,
6059,
14210,
7099,
1096,
29995,
29896,
29955,
24163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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4408,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29945,
29941,
29953,
29918,
29941,
5754,
376,
14343,
1369,
29908,
529,
525,
29896,
29929,
29947,
29946,
29915,
5300,
376,
2539,
310,
350,
7515,
29908,
306,
5265,
6059,
14210,
7099,
1096,
29995,
29896,
29955,
24163,
29896,
29947,
29955,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which leader born on December 17, 1874 started their term before 1984?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140105_6 (
Date text,
"Race Name" text,
Circuit text,
"Winning driver" text,
Constructor text,
Report text
);
CREATE TABLE table_1_1253396_5 (
"Goals For" numeric,
Club text,
"Overall Record" text,
"Goals For Avg." text,
"Goals Against" numeric,
"Goals Against Avg." text
);
CREATE TABLE table_2_149536_3 (
"Term end" text,
Name text,
"Term start" numeric,
"Date of Birth" text,
"Date of Death" text
);
CREATE TABLE table_1_11147852_1 (
"Channel TV ( DT )" text,
"City of license/Market" text,
Station text,
"Year of affiliation" text,
"Owned since" text
);
CREATE TABLE table_1_103084_4 (
"BBC One total viewing" numeric,
Year numeric,
"Broadcast date" text,
"BBC One Rank" text,
"BBC Two total viewing" text,
"BBC Two Rank" text
);
CREATE TABLE table_1_12451376_3 (
Title text,
"Production Code" numeric,
"Series Ep #" numeric,
"Season 3 Ep #" numeric,
Director text,
"Writer(s)" text,
"Original Airdate" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which leader born on December 17, 1874 started their term before 1984?`
```sql
| SELECT Name FROM table_2_149536_3 WHERE "Term start" < '1984' AND "Date of Birth" ILIKE '%december%17,%1874%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
19649,
310,
3001,
18952,
297,
29871,
29896,
29929,
29929,
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,
29953,
29955,
29896,
29941,
29946,
29918,
29896,
313,
13,
12,
29908,
29937,
310,
14055,
29908,
16985,
29892,
13,
12,
29908,
18457,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
29928,
10699,
4408,
29908,
1426,
29892,
13,
12,
29908,
18457,
29871,
29896,
29908,
1426,
29892,
13,
12,
29908,
18457,
29871,
29946,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29947,
29947,
29896,
29929,
29941,
29929,
29941,
29918,
29896,
313,
13,
12,
29907,
5380,
1078,
16985,
29892,
13,
12,
29908,
11536,
18952,
29908,
16985,
29892,
13,
12,
29908,
29909,
19698,
18952,
639,
14020,
29908,
16985,
29892,
13,
12,
29908,
29903,
10511,
897,
1066,
1169,
29908,
16985,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
29995,
310,
3001,
11719,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
16379,
29879,
29908,
16985,
29892,
13,
12,
29908,
29909,
19698,
1273,
310,
11719,
639,
14020,
29908,
1426,
13,
416,
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,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29945,
29947,
29947,
29918,
29941,
313,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
13020,
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,
5618,
471,
278,
19649,
310,
3001,
18952,
297,
29871,
29896,
29929,
29929,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
11860,
310,
3001,
11719,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29947,
29896,
29929,
29941,
29929,
29941,
29918,
29896,
5754,
376,
12883,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29929,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11860,
310,
3001,
11719,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29947,
29896,
29929,
29941,
29929,
29941,
29918,
29896,
5754,
376,
12883,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29929,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the percentage of total votes in 1997?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1067134_1 (
"# of Ep" numeric,
"Region 2" text,
"DVD Name" text,
"Region 1" text,
"Region 4" text
);
CREATE TABLE table_1_28819393_1 (
Candidates numeric,
"Total votes" numeric,
"Average votes per candidate" numeric,
"Saved Deposits" numeric,
Year text,
"% of total vote" text,
"Number of MPs" numeric,
"Average % of vote per candidate" text
);
CREATE TABLE table_1_10953197_7 (
"No. in season" numeric,
Director text,
"No. in series" numeric,
Title text,
"Writer(s)" text,
"Production code" text,
"Original air date" text
);
CREATE TABLE table_1_1132588_3 (
"Grand Prix" text,
"Fastest Lap" text,
"Rd." numeric,
"Pole Position" text,
"Winning Driver" text,
Report text,
Constructor text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the percentage of total votes in 1997?`
```sql
| SELECT "% of total vote" FROM table_1_28819393_1 WHERE "Year" ILIKE '%1997%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1293,
6475,
363,
3748,
29871,
29906,
29929,
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,
29906,
29945,
29945,
29896,
29896,
29900,
29918,
29955,
313,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29954,
1280,
7412,
287,
29908,
16985,
29892,
13,
12,
29908,
12739,
319,
19698,
29908,
1426,
29892,
13,
12,
29931,
15806,
16985,
29892,
13,
12,
8140,
2667,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29941,
29946,
29906,
29947,
29953,
29918,
29953,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
3291,
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,
1293,
6475,
363,
3748,
29871,
29906,
29929,
17580,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29941,
29946,
29906,
29947,
29953,
29918,
29953,
5754,
376,
14199,
29908,
353,
525,
29906,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
14164,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29941,
29946,
29906,
29947,
29953,
29918,
29953,
5754,
376,
14199,
29908,
353,
525,
29906,
29929,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`List records for game 29.`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1255110_7 (
"Goals Against" numeric,
Club text,
Wins numeric,
"No." numeric,
Player text,
"Games Played" numeric,
"GA Average" text,
Loses numeric,
Minutes numeric
);
CREATE TABLE table_1_27734286_6 (
"High rebounds" text,
Team text,
"Location Attendance" text,
Game numeric,
Date text,
Score text,
"High assists" text,
Record text,
"High points" text
);
```
### Answer
Here is the SQL query that answers the question:
`List records for game 29.`
```sql
| SELECT Record FROM table_1_27734286_6 WHERE "Game" = '29' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
301,
1662,
29871,
29946,
29915,
29879,
931,
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,
29953,
29906,
29946,
29955,
29929,
29906,
29918,
29945,
313,
13,
12,
1170,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29931,
1662,
16985,
29892,
13,
12,
29934,
804,
16985,
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,
20097,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
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,
29892,
13,
12,
2008,
1658,
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,
301,
1662,
29871,
29946,
29915,
29879,
931,
29973,
29952,
13,
28956,
2850,
13,
5097,
323,
8890,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29906,
29946,
29955,
29929,
29906,
29918,
29945,
5754,
376,
29931,
1662,
29908,
353,
525,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8890,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29906,
29946,
29955,
29929,
29906,
29918,
29945,
5754,
376,
29931,
1662,
29908,
353,
525,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was lane 4's time?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18624792_5 (
Name text,
Time text,
Nationality text,
Lane numeric,
Rank numeric
);
CREATE TABLE table_1_12444503_1 (
Winner text,
Score text,
"Runner-up" text,
"lost to eventual runner-up" text,
"lost to eventual winner" text,
Season text
);
```
### Answer
Here is the SQL query that answers the question:
`What was lane 4's time?`
```sql
| SELECT TIME FROM table_2_18624792_5 WHERE "Lane" = '4' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
14333,
2925,
750,
278,
25749,
365,
1080,
408,
23995,
1237,
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,
29946,
29929,
29955,
29896,
29955,
29947,
29947,
29918,
29896,
313,
13,
12,
29908,
14199,
10781,
29908,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29955,
313,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
20097,
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,
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,
5328,
1784,
14333,
2925,
750,
278,
25749,
365,
1080,
408,
23995,
1237,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
4165,
21642,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29955,
29896,
29955,
29947,
29947,
29918,
29896,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
4801,
15164,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
22753,
29898,
4165,
21642,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29929,
29955,
29896,
29955,
29947,
29947,
29918,
29896,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
4801,
15164,
29995,
29880,
1080,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many attendances had the Detroit Lions as opponents?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_14971788_1 (
"Game Site" text,
Opponent text,
Attendance numeric,
Week numeric,
Result text,
Record text,
Date text
);
CREATE TABLE table_1_11964154_7 (
"High assists" text,
Score text,
"Location Attendance" text,
Game numeric,
"High points" text,
"High rebounds" text,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`How many attendances had the Detroit Lions as opponents?`
```sql
| SELECT SUM(Attendance) FROM table_2_14971788_1 WHERE "Opponent" ILIKE '%detroit%lions%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
438,
407,
265,
296,
756,
263,
5974,
310,
29871,
29946,
29901,
29945,
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,
29906,
29918,
29896,
29955,
29906,
29945,
29946,
29896,
29953,
29918,
29906,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
1666,
1213,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
4062,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
2481,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29896,
29947,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29945,
29953,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
11184,
847,
319,
1582,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
29914,
4165,
21642,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29906,
29941,
29896,
29946,
29918,
29945,
313,
13,
12,
2792,
1426,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
27933,
313,
29896,
29929,
29947,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29896,
29929,
29947,
29900,
5513,
16985,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29929,
5513,
16985,
29892,
13,
12,
29908,
27933,
313,
29896,
29929,
29929,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29896,
29929,
29929,
29900,
5513,
16985,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29900,
5513,
16985,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29900,
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,
8809,
436,
438,
407,
265,
296,
756,
263,
5974,
310,
29871,
29946,
29901,
29945,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29945,
29946,
29896,
29953,
29918,
29906,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
29946,
29901,
29945,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29945,
29946,
29896,
29953,
29918,
29906,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
29946,
29901,
29945,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Opponent has a Time of 4:51?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1725416_2 (
Location text,
Opponent text,
Record text,
"Res." text,
Event text,
Method text,
Round numeric,
Time text
);
CREATE TABLE table_1_1137718_2 (
Report text,
Date text,
"Grand Prix" text,
"Rd." numeric,
"Fastest Lap" text,
"Pole Position" text,
"Winning Driver" text,
Constructor text
);
CREATE TABLE table_1_10595672_1 (
"Home / Away" text,
Score text,
Opponent text,
"High rebounds" text,
"High points" text,
"High assists" text,
"Location/Attendance" text
);
CREATE TABLE table_1_1182314_5 (
State text,
"Percent (2009)" text,
"Percent (1980)" text,
"Norwegian Americans (1980)" numeric,
"Norwegian Americans (2009)" numeric,
"Percent (1990)" text,
"Norwegian Americans (1990)" numeric,
"Norwegian Americans (2000)" numeric,
"Percent (2000)" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Opponent has a Time of 4:51?`
```sql
| SELECT Opponent FROM table_2_1725416_2 WHERE "Time" ILIKE '%4:51%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3644,
278,
7622,
886,
338,
29871,
29953,
29947,
29892,
825,
338,
278,
6588,
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,
29900,
29953,
29953,
29900,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
4597,
8306,
1939,
1213,
1426,
29892,
13,
12,
29908,
29925,
309,
327,
1559,
1939,
1213,
16985,
29892,
13,
12,
29908,
9125,
1939,
1213,
1426,
29892,
13,
12,
29908,
12412,
1939,
1213,
16985,
29892,
13,
12,
1625,
473,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29896,
29953,
29900,
29941,
29946,
29918,
29896,
29953,
313,
13,
12,
29909,
19698,
1426,
29892,
13,
12,
29908,
3664,
4451,
29908,
16985,
29892,
13,
12,
797,
11753,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
9652,
267,
16985,
29892,
13,
12,
6558,
29879,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29955,
313,
13,
12,
14199,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
9182,
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,
19409,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
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,
5709,
1426,
29892,
13,
12,
3306,
1426,
29892,
13,
12,
29943,
7261,
16985,
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,
3644,
278,
7622,
886,
338,
29871,
29953,
29947,
29892,
825,
338,
278,
6588,
29973,
29952,
13,
28956,
2850,
13,
5097,
319,
19698,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29896,
29953,
29900,
29941,
29946,
29918,
29896,
29953,
5754,
376,
797,
11753,
29908,
353,
525,
29953,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
319,
19698,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29896,
29953,
29900,
29941,
29946,
29918,
29896,
29953,
5754,
376,
797,
11753,
29908,
353,
525,
29953,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`If the innings is 68, what is the average?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11066073_1 (
"Registration No." text,
"Pilot car No." numeric,
"Serial No." text,
"Engine No." numeric,
Colour text
);
CREATE TABLE table_1_23316034_16 (
Average text,
"Not Out" numeric,
Innings numeric,
Rank numeric,
Player text,
Matches numeric,
Runs numeric
);
CREATE TABLE table_1_11964154_7 (
Game numeric,
Date text,
Record text,
"High rebounds" text,
"High assists" text,
"High points" text,
Team text,
"Location Attendance" text,
Score text
);
CREATE TABLE table_1_11604804_5 (
Location text,
Institution text,
Status text,
Color text,
Founded numeric,
Nickname text
);
```
### Answer
Here is the SQL query that answers the question:
`If the innings is 68, what is the average?`
```sql
| SELECT Average FROM table_1_23316034_16 WHERE "Innings" = '68' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
11069,
338,
278,
341,
29950,
6154,
29899,
29906,
29900,
29900,
29900,
29946,
5725,
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,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29946,
313,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29953,
29929,
29946,
29947,
29953,
29929,
29918,
29906,
313,
13,
12,
18457,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
29907,
3968,
1426,
29892,
13,
12,
4775,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29900,
313,
13,
12,
8003,
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,
11069,
338,
278,
341,
29950,
6154,
29899,
29906,
29900,
29900,
29900,
29946,
5725,
29973,
29952,
13,
28956,
2850,
13,
5097,
11069,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29953,
29929,
29946,
29947,
29953,
29929,
29918,
29906,
5754,
376,
29907,
3968,
29908,
306,
5265,
6059,
14210,
29885,
29882,
695,
29899,
29906,
29900,
29900,
29900,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29953,
29929,
29946,
29947,
29953,
29929,
29918,
29906,
5754,
376,
29907,
3968,
29908,
306,
5265,
6059,
14210,
29885,
29882,
695,
29899,
29906,
29900,
29900,
29900,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What Region is the MHCL-20004 Catalog?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11545282_4 (
Player text,
Nationality text,
"Years for Jazz" text,
"School/Club Team" text,
Position text,
"No." numeric
);
CREATE TABLE table_1_11677691_12 (
Position text,
College text,
Hometown text,
School text
);
CREATE TABLE table_2_12694869_2 (
Region text,
Format text,
Catalog text,
Label text,
Date text
);
CREATE TABLE table_1_11677691_10 (
Position text,
Hometown text
);
```
### Answer
Here is the SQL query that answers the question:
`What Region is the MHCL-20004 Catalog?`
```sql
| SELECT Region FROM table_2_12694869_2 WHERE "Catalog" ILIKE '%mhcl-20004%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
15970,
526,
278,
3773,
19755,
267,
746,
278,
1024,
310,
9862,
338,
1900,
18032,
3631,
2706,
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,
29945,
29947,
29946,
29896,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
12310,
2785,
313,
29956,
279,
6669,
5513,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
855,
9716,
272,
412,
5513,
16985,
29892,
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,
18457,
3001,
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,
29900,
29896,
29906,
29900,
29906,
29900,
29955,
29918,
29947,
313,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
29164,
8276,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
29934,
804,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29945,
29929,
29906,
29953,
29896,
29906,
29900,
29918,
29955,
313,
13,
12,
21233,
1426,
29892,
13,
12,
29908,
1170,
310,
7526,
29908,
1426,
29892,
13,
12,
29908,
29909,
4495,
311,
29872,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29907,
1161,
20604,
29908,
1426,
29892,
13,
12,
29908,
1170,
310,
4643,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29906,
313,
13,
12,
29956,
16697,
16985,
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,
29940,
362,
1426,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29929,
29896,
29906,
29896,
29906,
29918,
29906,
313,
13,
12,
29908,
29925,
277,
1634,
272,
2153,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
3306,
3440,
1061,
29898,
29879,
5513,
1426,
29892,
13,
12,
8514,
1426,
29892,
13,
12,
1043,
414,
1426,
29892,
13,
12,
29908,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
29892,
13,
12,
29934,
271,
886,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
15970,
526,
278,
3773,
19755,
267,
746,
278,
1024,
310,
9862,
338,
1900,
18032,
3631,
2706,
29973,
29952,
13,
28956,
2850,
13,
5097,
319,
4495,
311,
29872,
29898,
29879,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29929,
29906,
29953,
29896,
29906,
29900,
29918,
29955,
5754,
376,
1170,
310,
7526,
29908,
306,
5265,
6059,
14210,
25353,
29995,
29909,
629,
3953,
3631,
29995,
3434,
29885,
29001,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
319,
4495,
311,
29872,
29898,
29879,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29929,
29906,
29953,
29896,
29906,
29900,
29918,
29955,
5754,
376,
1170,
310,
7526,
29908,
306,
5265,
6059,
14210,
25353,
29995,
29909,
629,
3953,
3631,
29995,
3434,
29885,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`who are the awardees when the name of award is best agricultural film?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12584173_1 (
"Population (Warwick)" numeric,
Year numeric,
"Population (Stanthorpe)" numeric,
"Population (Allora)" numeric,
"Population (Rosenthal)" numeric,
"Population (Region total)" numeric,
"Population (Glengallan)" numeric
);
CREATE TABLE table_1_10120207_8 (
"Season finale" text,
Season numeric,
"Season premiere" text,
"TV season" text,
"Viewers (millions)" text,
"Timeslot ( ET )" text,
Rank text
);
CREATE TABLE table_1_25926120_7 (
Language text,
"Name of Award" text,
"Awardee(s)" text,
"Cash Prize" text,
"Name of Film" text
);
CREATE TABLE table_1_12303563_2 (
Winners numeric,
"#" numeric,
"Runners-up" numeric,
"3rd Place" numeric,
Nation text,
"4th Place" numeric
);
CREATE TABLE table_1_11691212_2 (
"Pit reporters" text,
Network text,
"Color commentator(s)" text,
Host text,
Viewers text,
"Lap-by-lap" text,
Ratings text
);
```
### Answer
Here is the SQL query that answers the question:
`who are the awardees when the name of award is best agricultural film?`
```sql
| SELECT Awardee(s) FROM table_1_25926120_7 WHERE "Name of Award" ILIKE '%Best%Agricultural%Film%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
19435,
1258,
7197,
1171,
2367,
304,
376,
29879,
20027,
847,
4123,
26490,
1065,
3889,
613,
607,
471,
297,
1473,
2058,
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,
29929,
29896,
29906,
29896,
29906,
29918,
29906,
313,
13,
12,
1043,
414,
1426,
29892,
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,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29934,
271,
886,
1426,
29892,
13,
12,
8514,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29945,
313,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29955,
29929,
29953,
29941,
29918,
29953,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
14199,
16985,
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,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29946,
29941,
29896,
29929,
29918,
29896,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29928,
28778,
1426,
29892,
13,
12,
18420,
1171,
1426,
29892,
13,
12,
17241,
6115,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
29908,
29928,
749,
29914,
21453,
29908,
1426,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
29911,
5271,
5079,
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,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
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,
19435,
1258,
7197,
1171,
2367,
304,
376,
29879,
20027,
847,
4123,
26490,
1065,
3889,
613,
607,
471,
297,
1473,
2058,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
18420,
1171,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29946,
29941,
29896,
29929,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
11863,
29995,
6689,
29001,
5300,
376,
29928,
749,
29914,
21453,
29908,
306,
5265,
6059,
14210,
29903,
20027,
29995,
22584,
3492,
865,
29995,
3868,
5708,
29995,
6558,
29995,
20475,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
29898,
18420,
1171,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29946,
29941,
29896,
29929,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
11863,
29995,
6689,
29001,
5300,
376,
29928,
749,
29914,
21453,
29908,
306,
5265,
6059,
14210,
29903,
20027,
29995,
22584,
3492,
865,
29995,
3868,
5708,
29995,
6558,
29995,
20475,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many scores did Goodman give to "samba / young hearts run free", which was in second place?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11691212_2 (
Viewers text,
"Pit reporters" text,
"Color commentator(s)" text,
"Lap-by-lap" text,
Year numeric,
Network text,
Ratings text,
Host text
);
CREATE TABLE table_1_10470082_5 (
Villains text,
Writer text,
Director text,
Title text,
"No." numeric,
"#" numeric,
Storyteller text,
"US air date" text
);
CREATE TABLE table_1_11907963_6 (
Score text,
"High points" text,
Game numeric,
Date text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
Team text,
Record text
);
CREATE TABLE table_1_1014319_1 (
Result text,
Dixon text,
Goodman text,
Horwood text,
Week numeric,
"Dance/song" text,
Total text,
Tonioli text
);
CREATE TABLE table_1_12266757_1 (
"Womens doubles" text,
"Mens doubles" text,
"Womens singles" text,
Season text,
"Mens singles" text,
"Mixed doubles" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many scores did Goodman give to "samba / young hearts run free", which was in second place?`
```sql
| SELECT COUNT(Goodman) FROM table_1_1014319_1 WHERE "Result" ILIKE '%Second%place%' AND "Dance/song" ILIKE '%Samba%/%Young%Hearts%Run%Free%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1880,
3291,
363,
29871,
29906,
29896,
29899,
29946,
29945,
2407,
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,
29946,
29947,
29906,
29896,
29918,
29906,
313,
13,
12,
29908,
20325,
15074,
313,
29954,
1025,
5513,
16985,
29892,
13,
12,
29908,
12881,
14424,
2602,
29908,
1426,
29892,
13,
12,
29908,
20325,
15074,
313,
26729,
369,
5513,
16985,
29892,
13,
12,
29908,
20325,
15074,
313,
3247,
21203,
398,
5513,
16985,
29892,
13,
12,
29908,
20325,
15074,
313,
29903,
271,
20911,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29906,
29896,
29955,
29953,
29918,
29896,
313,
13,
12,
29908,
16107,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
11536,
2401,
29879,
313,
4035,
5513,
1426,
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,
2008,
1658,
1426,
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,
10536,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29900,
29906,
29900,
29955,
29918,
29947,
313,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
29908,
29164,
8276,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29955,
29896,
29906,
29941,
29929,
29918,
29929,
313,
13,
12,
29908,
16382,
12936,
3885,
29908,
1426,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
4007,
2879,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29909,
1267,
29874,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
8984,
29879,
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,
1880,
3291,
363,
29871,
29906,
29896,
29899,
29946,
29945,
2407,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
16382,
8984,
29879,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29955,
29896,
29906,
29941,
29929,
29918,
29929,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29906,
29896,
29899,
29946,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
703,
16382,
8984,
29879,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29955,
29896,
29906,
29941,
29929,
29918,
29929,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29906,
29896,
29899,
29946,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the high points for 21-45 record`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11254821_2 (
"Points awarded (Gold)" numeric,
"Finishing position" text,
"Points awarded (Silver)" numeric,
"Points awarded (Platinum)" numeric,
"Points awarded (Satellite)" numeric
);
CREATE TABLE table_1_1112176_1 (
"Other Goals" numeric,
"Total Apps (Sub)" text,
"League Goals" numeric,
"FL Cup Apps (Sub)" numeric,
Season text,
"League Apps (Sub)" numeric,
"Other Apps" numeric,
"FL Cup Goals" numeric,
"FA Cup Apps (Sub)" text,
"Total Goals" numeric,
Division text,
"FA Cup Goals" numeric
);
CREATE TABLE table_1_10120207_8 (
"Season finale" text,
"Timeslot ( ET )" text,
"TV season" text,
"Season premiere" text,
Rank text,
"Viewers (millions)" text
);
CREATE TABLE table_1_22871239_9 (
"High Rebounds" text,
Visitor text,
"#" numeric,
Score text,
"High Assists" text,
Record text,
Date text,
"Arena Attendance" text,
"High Points" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the high points for 21-45 record`
```sql
| SELECT COUNT("High Points") FROM table_1_22871239_9 WHERE "Record" ILIKE '%21-45%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1121,
756,
263,
1629,
1156,
29871,
29906,
29900,
29900,
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,
29945,
29896,
29947,
29953,
29947,
29906,
29955,
29918,
29896,
313,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
18126,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29953,
313,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
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,
1121,
756,
263,
1629,
1156,
29871,
29906,
29900,
29900,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29947,
29953,
29947,
29906,
29955,
29918,
29896,
5754,
376,
12883,
29908,
1405,
525,
29906,
29900,
29900,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29945,
29896,
29947,
29953,
29947,
29906,
29955,
29918,
29896,
5754,
376,
12883,
29908,
1405,
525,
29906,
29900,
29900,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What result has a year after 2002?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15186827_1 (
Venue text,
Result text,
Tournament text,
Year numeric,
Extra text
);
CREATE TABLE table_1_11959669_6 (
"High assists" text,
Record text,
Team text,
"High rebounds" text,
"Location Attendance" text,
Date text,
Score text,
Game numeric,
"High points" text
);
```
### Answer
Here is the SQL query that answers the question:
`What result has a year after 2002?`
```sql
| SELECT RESULT FROM table_2_15186827_1 WHERE "Year" > '2002' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2533,
310,
599,
425,
567,
411,
7115,
29871,
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,
29953,
29906,
29896,
29929,
29896,
29945,
29918,
29896,
313,
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,
29956,
3993,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29953,
29896,
29941,
29947,
29918,
29896,
313,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
12881,
728,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
24399,
1426,
29892,
13,
12,
4763,
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,
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,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29947,
29945,
29955,
29906,
29918,
29896,
313,
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,
29892,
13,
12,
2008,
1658,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29955,
29947,
29945,
29906,
29918,
29896,
313,
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,
29892,
13,
12,
22814,
1426,
29892,
13,
12,
29908,
16885,
310,
19405,
29914,
9802,
300,
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,
2533,
310,
599,
425,
567,
411,
7115,
29871,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29931,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29953,
29896,
29941,
29947,
29918,
29896,
5754,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29931,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29953,
29896,
29941,
29947,
29918,
29896,
5754,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the sum of all laps with rank 3?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11621915_1 (
"Purse( $ )" numeric,
"1st Prize( $ )" numeric,
Winner text,
Location text,
Score text,
Tournament text,
Date text
);
CREATE TABLE table_2_1236138_1 (
Laps numeric,
Finish text,
Rank text,
Qual text,
Start text
);
CREATE TABLE table_1_11964154_9 (
"High rebounds" text,
Record text,
"High assists" text,
"High points" text,
"Location Attendance" text,
Team text,
Game numeric
);
CREATE TABLE table_1_11148572_1 (
"MLS Supporters Shield Runner-Up" text,
"MLS Supporters Shield Winner" text,
"MLS Cup Runner-Up" text,
"MLS Cup Winner" text,
Season numeric
);
CREATE TABLE table_1_11147852_1 (
"Owned since" text,
"Year of affiliation" text,
"Channel TV ( DT )" text,
Station text,
"City of license/Market" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the sum of all laps with rank 3?`
```sql
| SELECT COUNT(Laps) FROM table_2_1236138_1 WHERE "Rank" ILIKE '%3%' |