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,
5328,
1784,
3001,
4380,
267,
1258,
278,
4847,
411,
694,
29889,
29871,
29946,
29953,
505,
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,
29955,
29900,
29946,
29906,
29953,
29918,
29896,
313,
13,
12,
855,
3427,
886,
16985,
29892,
13,
12,
29908,
11536,
18918,
1338,
29908,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3057,
6413,
29908,
1426,
29892,
13,
12,
24376,
16985,
29892,
13,
12,
29907,
905,
267,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29941,
29906,
29947,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29955,
29896,
29941,
29946,
29918,
29896,
313,
13,
12,
29908,
18457,
29871,
29896,
29908,
1426,
29892,
13,
12,
29908,
29928,
10699,
4408,
29908,
1426,
29892,
13,
12,
29908,
29937,
310,
14055,
29908,
16985,
29892,
13,
12,
29908,
18457,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
18457,
29871,
29946,
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,
3001,
4380,
267,
1258,
278,
4847,
411,
694,
29889,
29871,
29946,
29953,
505,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29907,
905,
267,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29955,
29900,
29946,
29906,
29953,
29918,
29896,
5754,
376,
3782,
1213,
353,
525,
29946,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29907,
905,
267,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29955,
29900,
29946,
29906,
29953,
29918,
29896,
5754,
376,
3782,
1213,
353,
525,
29946,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many total catches did the player with no. 46 have?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_27770426_1 (
Stumpings numeric,
"Total dismissals" numeric,
"No." numeric,
Club text,
Player text,
"Test career" text,
Tests numeric,
Catches numeric
);
CREATE TABLE table_1_12232843_1 (
"Womens singles" text,
Season numeric,
"Mens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
);
CREATE TABLE table_1_1067134_1 (
"Region 1" text,
"DVD Name" text,
"# of Ep" numeric,
"Region 2" text,
"Region 4" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many total catches did the player with no. 46 have?`
```sql
| SELECT COUNT(Catches) FROM table_1_27770426_1 WHERE "No." = '46' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
385,
1039,
11561,
526,
727,
363,
26271,
29871,
29946,
29947,
29889,
29896,
29946,
29906,
29929,
29941,
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,
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,
29908,
3434,
29885,
4408,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29900,
29900,
29955,
29953,
29900,
29918,
29906,
29900,
313,
13,
12,
29908,
29956,
1008,
313,
3044,
2460,
5513,
1426,
29892,
13,
12,
13992,
4279,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
8208,
4279,
1426,
29892,
13,
12,
29908,
22677,
313,
18074,
2460,
1723,
29908,
1426,
29892,
13,
12,
29911,
776,
3527,
1426,
29892,
13,
12,
29908,
2190,
5425,
775,
29908,
16985,
29892,
13,
12,
29908,
1692,
29949,
3553,
29908,
16985,
29892,
13,
12,
29908,
12310,
29889,
313,
29906,
29900,
29896,
29900,
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,
5328,
1784,
385,
1039,
11561,
526,
727,
363,
26271,
29871,
29946,
29947,
29889,
29896,
29946,
29906,
29929,
29941,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
2190,
5425,
775,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29900,
29900,
29955,
29953,
29900,
29918,
29906,
29900,
5754,
376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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,
21122,
703,
2190,
5425,
775,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29900,
29900,
29955,
29953,
29900,
29918,
29906,
29900,
5754,
376,
13992,
4279,
29908,
306,
5265,
6059,
14210,
29946,
29947,
29889,
29896,
29946,
29906,
29929,
29941,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many ansi codes are there for latitude 48.142938?`
### 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,
"Film Name" text,
Director text
);
CREATE TABLE table_1_18600760_20 (
"Water (sqmi)" text,
Latitude text,
County text,
Longitude text,
"Land ( sqmi )" text,
Township text,
"ANSI code" numeric,
"GEO ID" numeric,
"Pop. (2010)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many ansi codes are there for latitude 48.142938?`
```sql
| SELECT COUNT("ANSI code") FROM table_1_18600760_20 WHERE "Latitude" ILIKE '%48.142938%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2407,
363,
3786,
29871,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29946,
29896,
29953,
29947,
29896,
29918,
29906,
313,
13,
12,
29931,
2209,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29906,
29896,
29947,
29955,
29900,
29918,
29941,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
9652,
267,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
8120,
1338,
1426,
29892,
13,
12,
29853,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29953,
29906,
29906,
29896,
29946,
29918,
29896,
313,
13,
12,
29908,
2539,
313,
4591,
5513,
1426,
29892,
13,
12,
29908,
1170,
310,
2184,
29908,
1426,
29892,
13,
12,
29908,
2539,
313,
1762,
5513,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
5323,
428,
5167,
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,
2407,
363,
3786,
29871,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29946,
29896,
29953,
29947,
29896,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
481,
4115,
29995,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29896,
29955,
29946,
29896,
29953,
29947,
29896,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
481,
4115,
29995,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the record for April 8?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_11741681_2 (
Loss text,
Date text,
Attendance text,
Opponent text,
Record text,
Score text
);
CREATE TABLE table_1_12321870_32 (
Position text,
Country text,
Matches text,
"Player name" text,
Goals text,
Period text
);
CREATE TABLE table_1_12562214_1 (
"Date (From)" text,
"Name of System" text,
"Date (To)" text,
Location text,
Notes text,
"Traction Type" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the record for April 8?`
```sql
| SELECT Record FROM table_2_11741681_2 WHERE "Date" ILIKE '%april%8%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
9939,
5839,
363,
278,
4847,
11783,
10920,
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,
29955,
29941,
29941,
29906,
29955,
29929,
29918,
29941,
313,
13,
12,
19409,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29925,
860,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29953,
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,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
9182,
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,
9939,
5839,
363,
278,
4847,
11783,
10920,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29925,
860,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29941,
29941,
29906,
29955,
29929,
29918,
29941,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
328,
314,
29995,
29926,
2873,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
29925,
860,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29941,
29941,
29906,
29955,
29929,
29918,
29941,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
328,
314,
29995,
29926,
2873,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the highest pick for the player Adam Jones?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_12733279_3 (
Team text,
Position text,
School text,
Player text,
Pick numeric
);
CREATE TABLE table_1_11959669_6 (
Score text,
Date text,
"Location Attendance" text,
"High rebounds" text,
"High points" text,
"High assists" text,
Game numeric,
Record text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the highest pick for the player Adam Jones?`
```sql
| SELECT MAX(Pick) FROM table_2_12733279_3 WHERE "Player" ILIKE '%adam%jones%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
278,
319,
1582,
3815,
338,
9232,
17418,
29892,
825,
6003,
434,
437,
896,
1708,
472,
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,
29906,
29906,
29955,
29946,
29946,
29918,
29906,
313,
13,
12,
29908,
11882,
1266,
10343,
29908,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
28867,
1426,
29892,
13,
12,
29908,
19729,
4712,
29908,
1426,
29892,
13,
12,
29908,
29907,
3968,
9681,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29929,
29946,
29946,
29946,
29918,
29946,
313,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29900,
29906,
29900,
29955,
29918,
29947,
313,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29164,
8276,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29900,
29906,
29906,
29929,
29946,
29918,
29896,
313,
13,
12,
29908,
29928,
1078,
6136,
29908,
1426,
29892,
13,
12,
5620,
29879,
1426,
29892,
13,
12,
29908,
15666,
557,
12965,
29908,
1426,
29892,
13,
12,
10923,
545,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
29956,
513,
5965,
5779,
1426,
29892,
13,
12,
29908,
29928,
314,
482,
313,
3308,
29928,
5513,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29909,
12588,
15201,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29947,
29946,
29906,
29918,
29896,
313,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
10844,
1312,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
10401,
278,
319,
1582,
3815,
338,
9232,
17418,
29892,
825,
6003,
434,
437,
896,
1708,
472,
29973,
29952,
13,
28956,
2850,
13,
5097,
9548,
434,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29929,
29946,
29946,
29946,
29918,
29946,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
12873,
17418,
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,
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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,
5097,
9548,
434,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29929,
29946,
29946,
29946,
29918,
29946,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
12873,
17418,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When the Away team is melbourne, what venue do they play at?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11222744_2 (
"Copyright Information" text,
Format text,
Year numeric,
Title text,
Studio text,
"Release Date" text,
"Catalog Number" text
);
CREATE TABLE table_2_10809444_4 (
Crowd numeric,
"Away team" text,
"Home team" text,
"Home team score" text,
"Away team score" text,
Venue text,
Date text
);
CREATE TABLE table_1_10120207_8 (
Rank text,
"Season premiere" text,
Season numeric,
"Timeslot ( ET )" text,
"Season finale" text,
"TV season" text,
"Viewers (millions)" text
);
CREATE TABLE table_1_10602294_1 (
"Dates active" text,
Refs text,
"Peak classification" text,
Pressure text,
Deaths text,
Windspeeds text,
"Damage (USD)" text,
Name text,
"Areas affected" text
);
CREATE TABLE table_1_1183842_1 (
Nickname text,
Founded numeric,
Institution text,
Location text,
Type text,
Enrollment numeric,
Joined numeric
);
```
### Answer
Here is the SQL query that answers the question:
`When the Away team is melbourne, what venue do they play at?`
```sql
| SELECT Venue FROM table_2_10809444_4 WHERE "Away team" ILIKE '%melbourne%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1629,
1258,
896,
8341,
29871,
29896,
303,
29892,
14841,
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,
29955,
29955,
29896,
29947,
29918,
29906,
313,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29941,
29896,
29953,
29918,
29896,
313,
13,
12,
4205,
3283,
1426,
29892,
13,
12,
29908,
8893,
2635,
29908,
1426,
29892,
13,
12,
29908,
9125,
1353,
29908,
1426,
29892,
13,
12,
29908,
7094,
1288,
12271,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29956,
10552,
24628,
313,
3750,
371,
12640,
1723,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29906,
29941,
29947,
29947,
29918,
29896,
313,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
4597,
29889,
24791,
29908,
1426,
29892,
13,
12,
12596,
2459,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29906,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29946,
29953,
29906,
29945,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
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,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
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,
1629,
1258,
896,
8341,
29871,
29896,
303,
29892,
14841,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29979,
26441,
29897,
3895,
1591,
29918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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29979,
26441,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29906,
29941,
29947,
29947,
29918,
29896,
5754,
376,
4597,
29889,
24791,
29908,
306,
5265,
6059,
14210,
29896,
303,
24163,
29903,
283,
5063,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What year did they finish 1st, southern?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1137718_2 (
"Winning Driver" text,
Date text,
"Rd." numeric,
Constructor text,
Report text,
"Fastest Lap" text,
"Pole Position" text,
Location text,
"Grand Prix" text
);
CREATE TABLE table_1_1057316_1 (
Disposition text,
"Build date" text,
"Serial number" text,
"Operational owner(s)" text,
"Wheel arrangement ( Whyte notation )" text
);
CREATE TABLE table_1_12002388_1 (
Playoffs text,
"Open Cup" text,
League text,
Year numeric,
"Reg. Season" text,
Division text
);
CREATE TABLE table_1_11677691_2 (
College text,
School text,
Player text,
Hometown text,
Position text
);
CREATE TABLE table_1_11664625_2 (
"No. in series" numeric,
"Original air date" text,
"U.S. viewers (millions)" text,
Title text,
"Written by" text,
"Directed by" text,
"No. in season" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What year did they finish 1st, southern?`
```sql
| SELECT MAX(YEAR) FROM table_1_12002388_1 WHERE "Reg. Season" ILIKE '%1st,%Southern%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4847,
1058,
2113,
297,
29871,
29896,
29929,
29955,
29955,
322,
15569,
2107,
1135,
29871,
29896,
29945,
29945,
471,
278,
21438,
304,
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,
29896,
29918,
29896,
29896,
29896,
29906,
29896,
29955,
29953,
29918,
29896,
313,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
11536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
29908,
16107,
2401,
29879,
29908,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
2008,
1658,
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,
29908,
16107,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
10536,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
313,
4035,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29946,
29900,
29941,
29941,
29918,
29896,
313,
13,
12,
29908,
29928,
4154,
23868,
396,
29908,
1426,
29892,
13,
12,
29908,
29928,
4154,
4134,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29941,
313,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
8091,
16985,
29892,
13,
12,
29943,
7261,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29941,
29906,
29947,
29955,
29946,
29918,
29941,
313,
13,
12,
29908,
1762,
610,
29908,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
12883,
29898,
29879,
29897,
2113,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29947,
29896,
29947,
29945,
29918,
29906,
313,
13,
12,
4421,
327,
1049,
16985,
29892,
13,
12,
29908,
29903,
283,
5063,
5408,
29908,
16985,
29892,
13,
12,
29956,
2122,
16985,
29892,
13,
12,
29903,
549,
1426,
29892,
13,
12,
29908,
29940,
272,
5063,
5408,
29908,
16985,
29892,
13,
12,
29924,
711,
5475,
16985,
29892,
13,
12,
29908,
29940,
272,
5063,
12126,
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,
4847,
1058,
2113,
297,
29871,
29896,
29929,
29955,
29955,
322,
15569,
2107,
1135,
29871,
29896,
29945,
29945,
471,
278,
21438,
304,
610,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
1762,
610,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29941,
29906,
29947,
29955,
29946,
29918,
29941,
5754,
376,
12883,
29898,
29879,
29897,
2113,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29955,
29955,
29001,
5300,
376,
11536,
29908,
1405,
525,
29896,
29945,
29945,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
703,
1762,
610,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29941,
29906,
29947,
29955,
29946,
29918,
29941,
5754,
376,
12883,
29898,
29879,
29897,
2113,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29955,
29955,
29001,
5300,
376,
11536,
29908,
1405,
525,
29896,
29945,
29945,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which player who won in 1977 and scored great than 155 was the closest to par?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1112176_1 (
"Total Goals" numeric,
"FA Cup Apps (Sub)" text,
"FA Cup Goals" numeric,
"Total Apps (Sub)" text,
"Other Apps" numeric,
Division text,
Season text,
"League Goals" numeric,
"FL Cup Apps (Sub)" numeric,
"Other Goals" numeric,
"FL Cup Goals" numeric,
"League Apps (Sub)" numeric
);
CREATE TABLE table_1_1004033_1 (
"Draft Pick #" text,
"Draft Class" text,
College text,
Player text,
Team text,
Position text,
Nationality text
);
CREATE TABLE table_1_11658094_3 (
Nickname text,
Enrollment numeric,
Joined numeric,
"Current Conference" text,
Institution text,
Type text,
Location text,
Left numeric,
Founded numeric
);
CREATE TABLE table_2_18132874_3 (
"To par" numeric,
Player text,
Country text,
Total numeric,
"Year(s) won" text
);
CREATE TABLE table_1_10128185_2 (
Scotland numeric,
"Southern England" numeric,
Wales numeric,
Song text,
"Northern England" numeric,
Mobiles numeric,
"Northern Ireland" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which player who won in 1977 and scored great than 155 was the closest to par?`
```sql
| SELECT MAX("To par") FROM table_2_18132874_3 WHERE "Year(s) won" ILIKE '%1977%' AND "Total" > '155' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2831,
385,
306,
5454,
29949,
310,
478,
29907,
1783,
29892,
825,
338,
278,
306,
8254,
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,
29896,
29900,
29953,
29945,
29918,
29906,
29947,
313,
13,
12,
11536,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
16382,
342,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
8514,
287,
16985,
29892,
13,
12,
29908,
3373,
29914,
6767,
29908,
1426,
29892,
13,
12,
29908,
8897,
8905,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29945,
29945,
29941,
29945,
29900,
29946,
29918,
29906,
313,
13,
12,
29909,
381,
637,
1426,
29892,
13,
12,
29902,
8254,
1426,
29892,
13,
12,
2965,
29909,
29949,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2831,
385,
306,
5454,
29949,
310,
478,
29907,
1783,
29892,
825,
338,
278,
306,
8254,
29973,
29952,
13,
28956,
2850,
13,
5097,
306,
8254,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29945,
29945,
29941,
29945,
29900,
29946,
29918,
29906,
5754,
376,
2965,
29909,
29949,
29908,
306,
5265,
6059,
14210,
7071,
312,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
306,
8254,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29945,
29945,
29941,
29945,
29900,
29946,
29918,
29906,
5754,
376,
2965,
29909,
29949,
29908,
306,
5265,
6059,
14210,
7071,
312,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`For an ICAO of VCCT, what is the IATA?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1161065_28 (
Total numeric,
Average numeric,
Highest numeric,
Venue text,
Lowest numeric,
Hosted numeric,
"Up/Down" text,
"Last Year" text
);
CREATE TABLE table_2_14553504_2 (
Airport text,
IATA text,
ICAO text,
City text,
Country text
);
```
### Answer
Here is the SQL query that answers the question:
`For an ICAO of VCCT, what is the IATA?`
```sql
| SELECT IATA FROM table_2_14553504_2 WHERE "ICAO" ILIKE '%vcct%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
3001,
1353,
310,
13958,
352,
521,
359,
549,
352,
363,
29871,
29947,
29892,
29941,
29945,
29906,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29947,
29955,
29941,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29945,
29896,
29900,
29918,
29945,
313,
13,
12,
18457,
1426,
29892,
13,
12,
29908,
29934,
29934,
6033,
9919,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29096,
1426,
29892,
13,
12,
29950,
23565,
1426,
29892,
13,
12,
13799,
1426,
29892,
13,
12,
12415,
2410,
1426,
29892,
13,
12,
29908,
29950,
574,
352,
29914,
1451,
359,
549,
352,
29908,
1426,
29892,
13,
12,
29908,
29924,
29994,
29934,
6033,
9919,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29945,
29946,
29906,
29929,
29953,
29918,
29896,
313,
13,
12,
13404,
1426,
29892,
13,
12,
1451,
481,
2153,
16985,
29892,
13,
12,
29965,
4174,
9998,
16985,
29892,
13,
12,
29943,
7261,
1426,
29892,
13,
12,
2385,
2450,
1426,
29892,
13,
12,
5494,
19252,
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,
3001,
1353,
310,
13958,
352,
521,
359,
549,
352,
363,
29871,
29947,
29892,
29941,
29945,
29906,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29950,
574,
352,
29914,
1451,
359,
549,
352,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29945,
29896,
29900,
29918,
29945,
5754,
376,
13799,
29908,
306,
5265,
6059,
14210,
29947,
29892,
29941,
29945,
29906,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29950,
574,
352,
29914,
1451,
359,
549,
352,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29900,
29945,
29896,
29900,
29918,
29945,
5754,
376,
13799,
29908,
306,
5265,
6059,
14210,
29947,
29892,
29941,
29945,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the total number of hangul chosongul for 8,352`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11621873_1 (
Score text,
Date text,
"1st Prize( $ )" numeric,
Winner text,
"Purse( $ )" numeric,
Location text,
Tournament text
);
CREATE TABLE table_1_160510_5 (
Region text,
"RR Romaja" text,
Country text,
ISO text,
Hanja text,
Area text,
Capital text,
"Hangul/Chosongul" text,
"M–R Romaja" text
);
CREATE TABLE table_1_10054296_1 (
Member text,
Chapters numeric,
UCCFS numeric,
Founded text,
Classification text,
Headquarters text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the total number of hangul chosongul for 8,352`
```sql
| SELECT COUNT(Hangul/Chosongul) FROM table_1_160510_5 WHERE "Area" ILIKE '%8,352%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1121,
363,
5260,
1265,
5013,
2817,
265,
746,
278,
19848,
931,
338,
7621,
1135,
29871,
29900,
29889,
29896,
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,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29941,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
2713,
598,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29164,
8276,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29953,
29900,
29955,
29896,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
12596,
2459,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29900,
29896,
29896,
29918,
29896,
29955,
313,
13,
12,
29931,
1662,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
3591,
16985,
29892,
13,
12,
29908,
1123,
2467,
5974,
29908,
16985,
29892,
13,
12,
1170,
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,
6508,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29956,
3993,
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,
29906,
29906,
29953,
29953,
29955,
29945,
29955,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1121,
363,
5260,
1265,
5013,
2817,
265,
746,
278,
19848,
931,
338,
7621,
1135,
29871,
29900,
29889,
29896,
29953,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
15989,
8647,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29900,
29896,
29896,
29918,
29896,
29955,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
14625,
1265,
29995,
5965,
2817,
265,
29001,
5300,
376,
1123,
2467,
5974,
29908,
1405,
525,
29900,
29889,
29896,
29953,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
15989,
8647,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29900,
29896,
29896,
29918,
29896,
29955,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
14625,
1265,
29995,
5965,
2817,
265,
29001,
5300,
376,
1123,
2467,
5974,
29908,
1405,
525,
29900,
29889,
29896,
29953,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11274401_3 (
"No." numeric,
Rating text,
"Viewers (m)" text,
"Air Date" text,
"Rank (#)" text,
"18–49 (Rating/Share)" text,
Share text,
Episode text,
Timeslot text
);
CREATE TABLE table_1_1046071_1 (
Year numeric,
League text,
Playoffs text,
"Open Cup" text,
"Regular Season" text,
Division numeric
);
CREATE TABLE table_2_18569011_17 (
Lane numeric,
Nationality text,
Result numeric,
"Reaction Time" numeric,
Name text
);
CREATE TABLE table_1_11622829_1 (
Date text,
Location text,
Score text,
Winner text,
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Tournament text
);
CREATE TABLE table_1_12266757_1 (
Season text,
"Womens singles" text,
"Womens doubles" text,
"Mixed doubles" text,
"Mens doubles" text,
"Mens singles" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167?`
```sql
| SELECT MAX(RESULT) FROM table_2_18569011_17 WHERE "Name" ILIKE '%wallace%spearmon%' AND "Reaction Time" > '0.167' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
318,
29889,
29879,
29889,
1776,
414,
313,
19958,
291,
29897,
505,
263,
3652,
396,
29871,
29947,
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,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
5098,
29931,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
3563,
497,
23868,
396,
29908,
16985,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29906,
29945,
29955,
29900,
29946,
29941,
29929,
29918,
29896,
313,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
29923,
12907,
3611,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29941,
29929,
29953,
29953,
29918,
29896,
313,
13,
12,
29911,
1000,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29908,
29925,
312,
1273,
29908,
1426,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
11042,
292,
1426,
29892,
13,
12,
29956,
265,
16985,
29892,
13,
12,
29908,
8120,
1338,
363,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
2750,
29908,
16985,
13,
416,
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,
29911,
2905,
1166,
1426,
29892,
13,
12,
6508,
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,
2539,
1426,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29945,
29941,
29941,
29946,
29918,
29906,
313,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
363,
26176,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
1043,
414,
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,
318,
29889,
29879,
29889,
1776,
414,
313,
19958,
291,
29897,
505,
263,
3652,
396,
29871,
29947,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29945,
29955,
29900,
29946,
29941,
29929,
29918,
29896,
5754,
376,
19204,
396,
29908,
353,
525,
29947,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29945,
29955,
29900,
29946,
29941,
29929,
29918,
29896,
5754,
376,
19204,
396,
29908,
353,
525,
29947,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many u.s. viewers (million) have a series # 83?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12165999_1 (
Player text,
"AFL Team" text,
Position text,
"Overall Pick #" numeric,
College text
);
CREATE TABLE table_1_22570439_1 (
"U.S. viewers (millions)" text,
"Season #" numeric,
"Episode title" text,
"Written by" text,
"Original air date" text,
"Series #" numeric,
"Directed by" text
);
CREATE TABLE table_1_1143966_1 (
Tied numeric,
Points numeric,
"Pct %" text,
Games numeric,
Lost numeric,
Season text,
Standing text,
Won numeric,
"Goals for" numeric,
"Goals against" numeric
);
CREATE TABLE table_1_11621873_1 (
Score text,
Tournament text,
Location text,
"Purse( $ )" numeric,
"1st Prize( $ )" numeric,
Date text,
Winner text
);
CREATE TABLE table_1_11235334_2 (
Timeslot text,
Episode text,
"Air Date" text,
"Weekly Rank for Living" text,
"#" numeric,
Viewers text
);
```
### Answer
Here is the SQL query that answers the question:
`How many u.s. viewers (million) have a series # 83?`
```sql
| SELECT "U.S. viewers (millions)" FROM table_1_22570439_1 WHERE "Series #" = '83' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
922,
271,
756,
263,
24791,
29871,
29953,
310,
1589,
3845,
288,
29915,
280,
653,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29953,
29955,
29945,
29918,
29896,
313,
13,
12,
20622,
1426,
29892,
13,
12,
29925,
4901,
262,
1426,
29892,
13,
12,
4300,
18411,
1426,
29892,
13,
12,
1451,
3314,
16985,
29892,
13,
12,
1451,
8233,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19204,
1426,
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,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29953,
29947,
29945,
29945,
29918,
29896,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29924,
3930,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29925,
1745,
631,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29955,
29953,
29945,
29946,
29918,
29896,
313,
13,
12,
29908,
2008,
1658,
29871,
29955,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
29871,
29906,
29908,
1426,
29892,
13,
12,
2008,
271,
16985,
29892,
13,
12,
29908,
2008,
1658,
29871,
29941,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
29871,
29953,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
29871,
29896,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
922,
271,
756,
263,
24791,
29871,
29953,
310,
1589,
3845,
288,
29915,
280,
653,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
2008,
271,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29955,
29953,
29945,
29946,
29918,
29896,
5754,
376,
2008,
1658,
29871,
29953,
29908,
306,
5265,
6059,
14210,
446,
3845,
29995,
29877,
29915,
280,
653,
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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2008,
271,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29955,
29953,
29945,
29946,
29918,
29896,
5754,
376,
2008,
1658,
29871,
29953,
29908,
306,
5265,
6059,
14210,
446,
3845,
29995,
29877,
29915,
280,
653,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Seat has a Season 6 of kevin o'leary?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1216675_1 (
Subject text,
Pinyin text,
Translation text,
Chapter numeric,
Chinese text
);
CREATE TABLE table_1_11964263_13 (
Game numeric,
"High rebounds" text,
Team text,
"High assists" text,
Series text,
"Location Attendance" text,
Score text,
"High points" text,
Date text
);
CREATE TABLE table_1_10566855_1 (
Attendance numeric,
"Runner-up" text,
Season numeric,
Margin numeric,
Venue text,
Premier text
);
CREATE TABLE table_2_1787654_1 (
"Season 7" text,
"Season 2" text,
Seat numeric,
"Season 3" text,
"Season 6" text,
"Season 1" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Seat has a Season 6 of kevin o'leary?`
```sql
| SELECT MAX(Seat) FROM table_2_1787654_1 WHERE "Season 6" ILIKE '%kevin%o'leary%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
5456,
278,
12720,
393,
756,
263,
5802,
775,
29871,
29941,
29916,
29955,
29945,
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,
29906,
29906,
29941,
29946,
29955,
29900,
29929,
29900,
29918,
29953,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29900,
29953,
29929,
29896,
29947,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29911,
277,
793,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
3206,
11259,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29900,
29896,
29947,
29896,
29918,
29896,
313,
13,
12,
29908,
7583,
269,
1188,
273,
29908,
1426,
29892,
13,
12,
29908,
2792,
29914,
357,
768,
706,
29908,
1426,
29892,
13,
12,
29908,
7583,
3652,
29908,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
29908,
1626,
29914,
7042,
12384,
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,
5456,
278,
12720,
393,
756,
263,
5802,
775,
29871,
29941,
29916,
29955,
29945,
29945,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29956,
20833,
491,
29908,
3895,
1591,
29918,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29941,
29946,
29955,
29900,
29929,
29900,
29918,
29953,
5754,
376,
23665,
428,
775,
29908,
306,
5265,
6059,
14210,
29941,
29990,
29955,
29945,
29945,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who wrote the episode that has a production code 3x7557?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_22347090_6 (
"Written by" text,
"Directed by" text,
"No. in series" numeric,
"Original air date" text,
"U.S. viewers (million)" text,
Title text,
"No. in season" numeric,
"Production code" text
);
CREATE TABLE table_1_12206918_2 (
Date text,
Number numeric,
Opponent text,
Result text,
Titles text,
Name text,
Defenses numeric
);
CREATE TABLE table_1_1000181_1 (
"Current slogan" text,
"State/territory" text,
"Current series" text,
Notes text,
Format text,
"Text/background colour" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who wrote the episode that has a production code 3x7557?`
```sql
| SELECT "Written by" FROM table_1_22347090_6 WHERE "Production code" ILIKE '%3X7557%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4266,
746,
278,
521,
5442,
914,
338,
8022,
1387,
289,
3222,
300,
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,
29929,
29947,
29906,
29941,
29929,
29929,
29918,
29896,
29906,
313,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
17693,
22607,
1127,
993,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
29908,
29902,
1617,
6561,
29888,
29908,
1426,
29892,
13,
12,
1451,
5442,
914,
1426,
29892,
13,
12,
24780,
1426,
29892,
13,
12,
29908,
1451,
5442,
914,
12630,
1017,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29896,
29896,
29941,
29945,
29918,
29941,
313,
13,
12,
1433,
15081,
1426,
29892,
13,
12,
29908,
8120,
292,
304,
29908,
1426,
29892,
13,
12,
8498,
442,
545,
1426,
29892,
13,
12,
29908,
5594,
292,
472,
29908,
1426,
29892,
13,
12,
26486,
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,
4266,
746,
278,
521,
5442,
914,
338,
8022,
1387,
289,
3222,
300,
29973,
29952,
13,
28956,
2850,
13,
5097,
12630,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29929,
29947,
29906,
29941,
29929,
29929,
29918,
29896,
29906,
5754,
376,
1451,
5442,
914,
29908,
306,
5265,
6059,
14210,
29928,
5817,
1387,
29995,
29933,
3222,
300,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
12630,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29929,
29947,
29906,
29941,
29929,
29929,
29918,
29896,
29906,
5754,
376,
1451,
5442,
914,
29908,
306,
5265,
6059,
14210,
29928,
5817,
1387,
29995,
29933,
3222,
300,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the special when the challenger is dominique bouchet?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_23982399_12 (
Winner text,
"Theme Ingredient" text,
"Original airdate" text,
"Iron Chef" text,
Challenger text,
Special text,
"Challenger Specialty" text
);
CREATE TABLE table_1_12221135_3 (
Arrival text,
"Going to" text,
Departure text,
"Calling at" text,
Operator text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the special when the challenger is dominique bouchet?`
```sql
| SELECT Special FROM table_1_23982399_12 WHERE "Challenger" ILIKE '%Dominique%Bouchet%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
3064,
471,
4234,
5545,
746,
18561,
29891,
1273,
471,
29871,
29906,
29900,
29889,
29929,
29953,
29995,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29900,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
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,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29953,
313,
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,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29929,
29953,
29947,
29896,
29955,
29941,
29947,
29918,
29896,
313,
13,
12,
29908,
29950,
273,
24956,
396,
29908,
16985,
29892,
13,
12,
29908,
27297,
29907,
475,
1273,
29908,
1426,
29892,
13,
12,
29908,
27297,
29907,
475,
396,
29908,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
29950,
273,
24956,
1273,
29908,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
855,
935,
29891,
396,
29908,
16985,
29892,
13,
12,
29908,
855,
935,
29891,
1273,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29906,
29945,
29900,
29918,
29896,
313,
13,
12,
29908,
29933,
280,
21219,
931,
29908,
1426,
29892,
13,
12,
29908,
3247,
403,
1026,
2302,
29908,
1426,
29892,
13,
12,
25255,
1426,
29892,
13,
12,
29908,
1184,
386,
456,
2109,
931,
29908,
1426,
29892,
13,
12,
29908,
7439,
616,
266,
456,
29890,
459,
4230,
262,
931,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29941,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
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,
5328,
1784,
3064,
471,
4234,
5545,
746,
18561,
29891,
1273,
471,
29871,
29906,
29900,
29889,
29929,
29953,
29995,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
3981,
29891,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29953,
29947,
29896,
29955,
29941,
29947,
29918,
29896,
5754,
376,
855,
935,
29891,
1273,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29889,
29929,
29953,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3981,
29891,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29953,
29947,
29896,
29955,
29941,
29947,
29918,
29896,
5754,
376,
855,
935,
29891,
1273,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29889,
29929,
29953,
7686,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many times was country considered when starky % was 20.96%`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677691_10 (
Hometown text,
College text,
Player text,
Position text,
School text
);
CREATE TABLE table_1_1213511_6 (
"NHL team" text,
"College/junior/club team" text,
"Pick #" numeric,
Position text,
Nationality text
);
CREATE TABLE table_1_19681738_1 (
"Hancock #" numeric,
"McCain %" text,
"McCain #" numeric,
Total numeric,
"Hancock %" text,
County text,
"Starky #" numeric,
"Starky %" text
);
CREATE TABLE table_1_1226250_1 (
"Bleeding time" text,
"Platelet count" text,
Condition text,
"Prothrombin time" text,
"Partial thromboplastin time" text
);
CREATE TABLE table_1_11734041_3 (
"School/Club Team/Country" text,
"No.(s)" text,
"Height in Ft." text,
"Years for Rockets" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many times was country considered when starky % was 20.96%`
```sql
| SELECT COUNT(County) FROM table_1_19681738_1 WHERE "Starky %" ILIKE '%20.96%%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
14728,
746,
278,
22091,
1353,
471,
29871,
29896,
29953,
322,
278,
770,
471,
413,
893,
29871,
29896,
29929,
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,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29900,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29896,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
29902,
29878,
728,
1024,
29908,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
29902,
29878,
728,
7726,
414,
29908,
1426,
29892,
13,
12,
29908,
24636,
1024,
29908,
1426,
29892,
13,
12,
3981,
29891,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29946,
29900,
29953,
29945,
29918,
29906,
313,
13,
12,
29908,
1123,
1658,
363,
1735,
29908,
1426,
29892,
13,
12,
14191,
272,
1426,
29892,
13,
12,
29908,
2539,
29433,
409,
630,
29908,
1426,
29892,
13,
12,
29963,
562,
1061,
1426,
29892,
13,
12,
29928,
6801,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29941,
29945,
29929,
29955,
29918,
29946,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29020,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29955,
29906,
29896,
29945,
29918,
29941,
313,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29934,
29881,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29946,
29953,
29896,
29929,
29955,
29918,
29896,
313,
13,
12,
2517,
9765,
9945,
1426,
29892,
13,
12,
29924,
327,
272,
1426,
29892,
13,
12,
2008,
1446,
16985,
29892,
13,
12,
22930,
537,
16985,
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,
5618,
338,
278,
14728,
746,
278,
22091,
1353,
471,
29871,
29896,
29953,
322,
278,
770,
471,
413,
893,
29871,
29896,
29929,
29896,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
22746,
537,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29946,
29953,
29896,
29929,
29955,
29918,
29896,
5754,
376,
2008,
1446,
29908,
353,
525,
29896,
29953,
29915,
5300,
376,
2385,
29908,
306,
5265,
6059,
14210,
29895,
893,
29995,
29896,
29929,
29896,
29941,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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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,
5097,
22746,
537,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29946,
29953,
29896,
29929,
29955,
29918,
29896,
5754,
376,
2008,
1446,
29908,
353,
525,
29896,
29953,
29915,
5300,
376,
2385,
29908,
306,
5265,
6059,
14210,
29895,
893,
29995,
29896,
29929,
29896,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the quantity when the seats number was 16 and the class was kss 1913?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677691_10 (
School text,
Hometown text,
College text,
Position text,
Player text
);
CREATE TABLE table_1_101196_1 (
"Irish name" text,
Population numeric,
"Irish speakers" text,
"English name" text,
County text
);
CREATE TABLE table_1_1204065_2 (
"Reason for change" text,
Successor text,
"Date successor seated" text,
Vacator text,
District text
);
CREATE TABLE table_1_10413597_4 (
Title text,
Setting text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"No. in season" numeric,
"No. in series" numeric
);
CREATE TABLE table_1_10527215_3 (
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
Report text,
Name text,
Rd numeric
);
CREATE TABLE table_2_15546197_1 (
Manufacturer text,
Motor text,
Seats numeric,
Quantity numeric,
Class text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the quantity when the seats number was 16 and the class was kss 1913?`
```sql
| SELECT Quantity FROM table_2_15546197_1 WHERE "Seats" = '16' AND "Class" ILIKE '%kss%1913%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3815,
363,
4259,
29871,
29896,
29929,
29896,
29896,
29899,
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,
29929,
29946,
29947,
29941,
29906,
29918,
29896,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29941,
29918,
29953,
313,
13,
12,
13020,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29946,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29900,
29918,
29906,
313,
13,
12,
29908,
29907,
582,
311,
12060,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
23859,
12060,
29879,
29908,
1426,
29892,
13,
12,
29908,
29943,
814,
1793,
19257,
29908,
1426,
29892,
13,
12,
29908,
29909,
19698,
4665,
313,
29916,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
13,
12,
29908,
29907,
582,
311,
4892,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
29908,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29941,
29947,
29900,
29947,
29918,
29906,
313,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
29908,
2539,
322,
5974,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
11184,
470,
319,
1582,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29945,
29953,
29906,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29907,
786,
2921,
1338,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29907,
786,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3815,
363,
4259,
29871,
29896,
29929,
29896,
29896,
29899,
29896,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
8583,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29945,
29953,
29906,
29945,
29955,
29918,
29896,
5754,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29896,
29896,
29899,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
8583,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29945,
29953,
29906,
29945,
29955,
29918,
29896,
5754,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29896,
29896,
29899,
29896,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the team for season 1911-12?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11694832_1 (
"Original air date" text,
Title text,
"U.S. viewers (millions)" text,
"No. in season" numeric,
"No. in series" numeric,
"Production code" text,
"Written by" text,
"Directed by" text
);
CREATE TABLE table_1_1140103_6 (
Report text,
Circuit text,
"Race Name" text,
"#" numeric,
Constructor text,
"Winning driver" text,
Date text
);
CREATE TABLE table_1_1140074_2 (
Report text,
Location text,
Race text,
Rnd numeric,
"Race Winner" text,
"Fastest Lap" text,
"Pole Position" text
);
CREATE TABLE table_1_12060_2 (
"Crude birth rate (per 1000)" text,
"Live births" text,
"Fertility rates" text,
"Average population (x 1000)" text,
"unnamed_0" numeric,
"Crude death rate (per 1000)" text,
"Natural change" text,
"Natural change (per 1000)" text,
Deaths text
);
CREATE TABLE table_1_1233808_2 (
Competition text,
"Date and Time" text,
Score text,
Record text,
Opponent text,
"Home or Away" text
);
CREATE TABLE table_1_10556257_1 (
"League Apps" numeric,
Team text,
"Cup Goals" numeric,
Season text,
"Cup Apps" numeric,
"League Goals" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the team for season 1911-12?`
```sql
| SELECT Team FROM table_1_10556257_1 WHERE "Season" ILIKE '%1911-12%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
21796,
363,
4272,
10599,
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,
29896,
29929,
29953,
29918,
29896,
313,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
29902,
29878,
728,
1024,
29908,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
24636,
1024,
29908,
1426,
29892,
13,
12,
29908,
29902,
29878,
728,
7726,
414,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29929,
29946,
29929,
29945,
29955,
29900,
29955,
29918,
29896,
313,
13,
12,
21889,
29879,
1426,
29892,
13,
12,
29908,
13992,
342,
6507,
2635,
322,
1873,
29908,
1426,
29892,
13,
12,
4873,
1426,
29892,
13,
12,
29908,
21956,
287,
491,
29908,
1426,
29892,
13,
12,
29931,
293,
1947,
1426,
29892,
13,
12,
29908,
6330,
368,
501,
8485,
1152,
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,
21796,
363,
4272,
10599,
29952,
13,
28956,
2850,
13,
5097,
28096,
29879,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29946,
29929,
29945,
29955,
29900,
29955,
29918,
29896,
5754,
376,
4873,
29908,
306,
5265,
6059,
14210,
16885,
12412,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
28096,
29879,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29946,
29929,
29945,
29955,
29900,
29955,
29918,
29896,
5754,
376,
4873,
29908,
306,
5265,
6059,
14210,
16885,
12412,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the platforms for cityengine`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_101196_1 (
Population numeric,
"Irish name" text,
County text,
"English name" text,
"Irish speakers" text
);
CREATE TABLE table_1_11622829_1 (
"Purse( $ )" numeric,
Tournament text,
Date text,
Location text,
"1st Prize( $ )" numeric,
Score text,
Winner text
);
CREATE TABLE table_1_19495707_1 (
Platforms text,
"Latest release date and version" text,
Application text,
"Developed by" text,
License text,
"Mainly Used For" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the platforms for cityengine`
```sql
| SELECT Platforms FROM table_1_19495707_1 WHERE "Application" ILIKE '%CityEngine%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
24577,
1629,
393,
263,
14020,
471,
937,
11467,
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,
29906,
29900,
29900,
29947,
29953,
29918,
29896,
313,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
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,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29947,
29929,
29955,
29918,
29946,
29906,
313,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
797,
29883,
3774,
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,
5618,
338,
278,
24577,
1629,
393,
263,
14020,
471,
937,
11467,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
6730,
11467,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29947,
29929,
29955,
29918,
29946,
29906,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6730,
11467,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29896,
29947,
29929,
29955,
29918,
29946,
29906,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the earliest year that a candidate was first elected?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11820086_1 (
"U.S. viewers (millions)" text,
"Directed by" text,
"Production code" text,
"No. in series" numeric,
Title text,
"Original air date" text,
"Written by" text,
"No. in season" numeric
);
CREATE TABLE table_1_1341897_42 (
District text,
Party text,
"First elected" numeric,
Candidates text,
Result text,
Incumbent text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the earliest year that a candidate was first elected?`
```sql
| SELECT MIN("First elected") FROM table_1_1341897_42 |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
15456,
756,
263,
2522,
487,
310,
29871,
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,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
2539,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29955,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29947,
29947,
29900,
29896,
29918,
29896,
313,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
29908,
22676,
472,
12060,
29908,
1426,
29892,
13,
12,
6816,
273,
292,
1426,
29892,
13,
12,
29908,
13658,
4408,
29908,
1426,
29892,
13,
12,
29954,
1581,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29946,
29906,
29941,
29941,
29918,
29946,
313,
13,
12,
9075,
1426,
29892,
13,
12,
20097,
16985,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
15456,
756,
263,
2522,
487,
310,
29871,
29953,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
15456,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29946,
29906,
29941,
29941,
29918,
29946,
5754,
376,
20097,
29908,
353,
525,
29953,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15456,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29946,
29906,
29941,
29941,
29918,
29946,
5754,
376,
20097,
29908,
353,
525,
29953,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 67?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964263_13 (
Date text,
Series text,
"High points" text,
"High assists" text,
"Location Attendance" text,
Game numeric,
"High rebounds" text,
Team text
);
CREATE TABLE table_1_11964154_7 (
Score text,
"Location Attendance" text,
Record text,
Date text,
"High rebounds" text
);
CREATE TABLE table_1_11908801_1 (
Nickname text,
"Weight at birth" text,
Meaning text,
"Full Name" text,
Gender text
);
CREATE TABLE table_2_18594233_4 (
Player text,
Score numeric,
"To par" text,
Place text,
Country text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Country has a Score of 67?`
```sql
| SELECT Country FROM table_2_18594233_4 WHERE "Score" = '67' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
526,
278,
1667,
7600,
363,
278,
12243,
962,
12602,
5120,
411,
385,
4038,
310,
7200,
1135,
29871,
29953,
29889,
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,
29945,
29955,
29941,
29896,
29953,
29918,
29896,
313,
13,
12,
29908,
29956,
10552,
24628,
313,
3750,
371,
12640,
1723,
29908,
1426,
29892,
13,
12,
4205,
3283,
1426,
29892,
13,
12,
29908,
7094,
1288,
12271,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
9125,
1353,
29908,
1426,
29892,
13,
12,
29908,
8893,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29900,
29900,
29918,
29906,
313,
13,
12,
13799,
16985,
29892,
13,
12,
29908,
6330,
7600,
29908,
1426,
29892,
13,
12,
29908,
15666,
1991,
639,
2383,
30088,
29908,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
797,
7308,
15776,
16985,
29892,
13,
12,
4597,
1080,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29953,
313,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29940,
290,
3381,
1426,
29892,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29946,
29947,
29900,
29946,
29918,
29945,
313,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
3306,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
5709,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29953,
29955,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29956,
290,
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,
5618,
526,
278,
1667,
7600,
363,
278,
12243,
962,
12602,
5120,
411,
385,
4038,
310,
7200,
1135,
29871,
29953,
29889,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
6330,
7600,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6330,
7600,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29900,
29900,
29918,
29906,
5754,
376,
4597,
1080,
29908,
306,
5265,
6059,
14210,
13045,
962,
12602,
29001,
5300,
376,
13799,
29908,
1405,
525,
29953,
29889,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What are the main places for the streymoy region with an area of larger than 6.1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1057316_1 (
"Wheel arrangement ( Whyte notation )" text,
Disposition text,
"Operational owner(s)" text,
"Serial number" text,
"Build date" text
);
CREATE TABLE table_1_1140080_2 (
Race text,
"Race Winner" text,
Location text,
Report text,
Constructor text,
"Pole Position" text,
Rnd numeric,
Date text,
"Fastest Lap" text
);
CREATE TABLE table_2_10700_2 (
Area numeric,
"Main places" text,
"People per km²" numeric,
Name text,
Inhabitants numeric,
Regions text
);
CREATE TABLE table_1_10236830_6 (
"Actors Name" text,
Country text,
Director text,
Nomination text,
"Film Name" text
);
CREATE TABLE table_1_11604804_5 (
Nickname text,
Color text,
Founded numeric,
Institution text,
Status text
);
CREATE TABLE table_1_12266757_1 (
"Mens singles" text,
"Womens doubles" text,
"Mens doubles" text,
Season text,
"Womens singles" text,
"Mixed doubles" text
);
```
### Answer
Here is the SQL query that answers the question:
`What are the main places for the streymoy region with an area of larger than 6.1?`
```sql
| SELECT "Main places" FROM table_2_10700_2 WHERE "Regions" ILIKE '%streymoy%' AND "Area" > '6.1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
29871,
29896,
29929,
29947,
29900,
29899,
29896,
29929,
29947,
29896,
3815,
310,
278,
4847,
6345,
297,
3362,
9972,
29892,
20994,
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,
29955,
29896,
29945,
29896,
29900,
29929,
29918,
29941,
29929,
313,
13,
12,
29908,
22676,
313,
9415,
5513,
16985,
29892,
13,
12,
29908,
7011,
313,
4912,
5513,
16985,
29892,
13,
12,
29908,
29967,
261,
7759,
396,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29947,
29900,
29994,
29896,
29929,
29947,
29896,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29933,
7515,
1256,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29933,
7515,
6689,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29953,
29906,
29896,
29946,
29929,
29918,
29896,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29941,
313,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
2713,
598,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29945,
29929,
29896,
29946,
29918,
29906,
29946,
313,
13,
12,
29908,
386,
331,
1023,
313,
1552,
1023,
5513,
1426,
29892,
13,
12,
29908,
6293,
1023,
29908,
1426,
29892,
13,
12,
29908,
705,
1023,
29908,
1426,
29892,
13,
12,
29908,
15970,
29899,
10184,
29908,
1426,
29892,
13,
12,
29908,
8259,
29914,
29903,
3096,
861,
29908,
1426,
29892,
13,
12,
29908,
6293,
322,
306,
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,
29871,
29896,
29929,
29947,
29900,
29899,
29896,
29929,
29947,
29896,
3815,
310,
278,
4847,
6345,
297,
3362,
9972,
29892,
20994,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29896,
29929,
29947,
29900,
29994,
29896,
29929,
29947,
29896,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29955,
29896,
29945,
29896,
29900,
29929,
29918,
29941,
29929,
5754,
376,
29933,
7515,
6689,
29908,
306,
5265,
6059,
14210,
4495,
9972,
24163,
1195,
4515,
4616,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29896,
29929,
29947,
29900,
29994,
29896,
29929,
29947,
29896,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29955,
29896,
29945,
29896,
29900,
29929,
29918,
29941,
29929,
5754,
376,
29933,
7515,
6689,
29908,
306,
5265,
6059,
14210,
4495,
9972,
24163,
1195,
4515,
4616,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the 1980-1981 team of the player born in Warroad, Minnesota?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15715109_39 (
"Weight (kg)" numeric,
"Height (cm)" numeric,
"Jersey #" numeric,
"1980–1981 Team" text,
Position text,
Birthdate text,
Name text,
Birthplace text
);
CREATE TABLE table_1_11562149_1 (
"Written by" text,
"Directed by" text,
"No. in season" text,
"U.S. viewers (million)" text,
"No. in series" text,
"Featured character(s)" text,
Title text,
"Original air date" text
);
CREATE TABLE table_1_11274401_3 (
Rating text,
"Rank (#)" text,
"Viewers (m)" text,
Timeslot text,
Episode text,
"No." numeric,
Share text,
"Air Date" text,
"18–49 (Rating/Share)" text
);
CREATE TABLE table_1_1015914_24 (
"them two (the two)" text,
"you two" text,
"we two" text,
"who-two" text,
"Case/Suffix" text,
"you and I" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the 1980-1981 team of the player born in Warroad, Minnesota?`
```sql
| SELECT "1980–1981 Team" FROM table_2_15715109_39 WHERE "Birthplace" ILIKE '%warroad,%minnesota%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2058,
338,
278,
2071,
631,
411,
29871,
29955,
29889,
29955,
29941,
1623,
29131,
3291,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29896,
313,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29940,
860,
978,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29896,
29947,
29941,
29918,
29906,
313,
13,
12,
29908,
10095,
307,
4038,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
29956,
29967,
29907,
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,
4557,
310,
22057,
313,
3289,
1718,
29933,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29900,
29947,
29945,
29953,
29918,
29896,
313,
13,
12,
29908,
29945,
6625,
1169,
29908,
1426,
29892,
13,
12,
29908,
29896,
16200,
29908,
16985,
29892,
13,
12,
29908,
29906,
6625,
1169,
29908,
16985,
29892,
13,
12,
29908,
29941,
6625,
1169,
29908,
16985,
29892,
13,
12,
3481,
1426,
29892,
13,
12,
29908,
29946,
6625,
1169,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29945,
29900,
29947,
29929,
29947,
29918,
29941,
313,
13,
12,
29908,
6767,
29131,
3291,
29908,
16985,
29892,
13,
12,
29908,
16973,
17419,
3291,
29908,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
6843,
300,
2105,
1426,
29892,
13,
12,
11536,
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,
7031,
29871,
29896,
29900,
29879,
29908,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
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,
29907,
8842,
1754,
20605,
16985,
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,
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,
338,
278,
2071,
631,
411,
29871,
29955,
29889,
29955,
29941,
1623,
29131,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29945,
29900,
29947,
29929,
29947,
29918,
29941,
5754,
376,
6767,
29131,
3291,
29908,
353,
525,
29955,
29889,
29955,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What place is the skier with 7.73 downhill points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11658094_1 (
Joined text,
Location text,
Founded numeric,
Type text,
Institution text,
Enrollment numeric,
Nickname text
);
CREATE TABLE table_1_1131183_2 (
"Metro area" text,
"Number of Jews (WJC)" numeric,
"Rank ( WJC )" numeric,
"Rank (ARDA)" numeric,
"Number of Jews (ASARB)" numeric
);
CREATE TABLE table_1_11200856_1 (
"5 credits" text,
"1 credit" numeric,
"2 credits" numeric,
"3 credits" numeric,
Hand text,
"4 credits" numeric
);
CREATE TABLE table_2_17750898_3 (
"Downhill points" numeric,
"Slalom points" text,
Place text,
Competitor text,
Total text
);
CREATE TABLE table_1_10021158_3 (
"Money list rank" text,
"Top 10s" numeric,
"Scoring average" text,
"Earnings ($)" numeric,
"Scoring rank" text,
"Tournaments played" numeric,
"Cuts made*" numeric,
Wins numeric,
Year numeric,
"2nd" numeric,
"Best finish" text
);
```
### Answer
Here is the SQL query that answers the question:
`What place is the skier with 7.73 downhill points?`
```sql
| SELECT Place FROM table_2_17750898_3 WHERE "Downhill points" = '7.73' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
29871,
29906,
29900,
29896,
29906,
2645,
399,
326,
569,
9176,
322,
750,
263,
660,
29941,
297,
29871,
29906,
29900,
29900,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29906,
29896,
29955,
29945,
29941,
29918,
29896,
313,
13,
12,
29908,
29906,
29900,
29896,
29896,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29947,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29906,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29906,
313,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
9075,
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,
29915,
29879,
278,
29871,
29906,
29900,
29896,
29906,
2645,
399,
326,
569,
9176,
322,
750,
263,
660,
29941,
297,
29871,
29906,
29900,
29900,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
29871,
29906,
29900,
29896,
29906,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29906,
29896,
29955,
29945,
29941,
29918,
29896,
5754,
376,
29906,
29900,
29900,
29947,
29908,
306,
5265,
6059,
14210,
29939,
29941,
29001,
5300,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
29893,
326,
569,
9176,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29906,
29896,
29955,
29945,
29941,
29918,
29896,
5754,
376,
29906,
29900,
29900,
29947,
29908,
306,
5265,
6059,
14210,
29939,
29941,
29001,
5300,
376,
29911,
2905,
1166,
29908,
306,
5265,
6059,
14210,
29893,
326,
569,
9176,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the 2012 during Wimbledon and had a Q3 in 2008?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18621753_1 (
"2011" text,
"2010" text,
"2009" text,
"2008" text,
Tournament text,
"2012" text
);
CREATE TABLE table_1_10015132_2 (
"Years in Toronto" text,
Position text,
Nationality text,
"No." text,
Player text,
"School/Club Team" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the 2012 during Wimbledon and had a Q3 in 2008?`
```sql
| SELECT 2012 FROM table_2_18621753_1 WHERE "2008" ILIKE '%q3%' AND "Tournament" ILIKE '%wimbledon%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4797,
537,
310,
3762,
29914,
29066,
3815,
310,
289,
442,
265,
21759,
313,
2039,
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,
29906,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29896,
29953,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29947,
29945,
29947,
29918,
29896,
313,
13,
12,
29908,
12883,
1857,
2522,
449,
292,
13013,
8772,
399,
3267,
29924,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
3253,
29885,
1169,
12544,
29914,
29887,
9968,
29908,
1426,
29892,
13,
12,
29908,
29924,
1590,
10475,
313,
3166,
29871,
29906,
29900,
29896,
29900,
5513,
16985,
29892,
13,
12,
29908,
12883,
4509,
13013,
471,
11091,
29908,
1426,
29892,
13,
12,
29908,
1170,
310,
4509,
13013,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29896,
29953,
29900,
29896,
29918,
29906,
313,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29911,
787,
639,
2022,
29897,
313,
29906,
29900,
29900,
29955,
5513,
1426,
29892,
13,
12,
29908,
27933,
482,
310,
5534,
3001,
29908,
1426,
29892,
13,
12,
29908,
8179,
6718,
20562,
29916,
680,
953,
6847,
639,
1629,
313,
29896,
29900,
29871,
29953,
323,
787,
29897,
313,
29906,
29900,
29900,
29953,
5513,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
25477,
639,
2383,
29871,
29906,
310,
967,
2982,
313,
7453,
5513,
16985,
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,
4797,
537,
310,
3762,
29914,
29066,
3815,
310,
289,
442,
265,
21759,
313,
2039,
6877,
29952,
13,
28956,
2850,
13,
5097,
3086,
537,
3895,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3086,
537,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29896,
29953,
5754,
376,
4504,
1507,
29914,
6821,
431,
8583,
29908,
306,
5265,
6059,
14210,
29890,
442,
265,
29995,
617,
29995,
29898,
2039,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the nationality of school/club team of barton cc (ks)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10015132_16 (
"School/Club Team" text,
Nationality text,
Player text,
"Years in Toronto" text,
Position text
);
CREATE TABLE table_1_104858_1 (
"Year current Scouting organization joined WOSM" text,
Country text,
"Admits boys/girls" text,
"Membership (from 2010)" numeric,
"Year member organization was founded" text,
"Name of member organization" text
);
CREATE TABLE table_1_11251601_2 (
"Carbon dioxide emissions per year (Tons per person) (2007)" text,
"Percentage of global total" text,
"Carbon dioxide emissions per year (10 6 Tons) (2006)" numeric,
"Avg. emission per km 2 of its land (tons)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the nationality of school/club team of barton cc (ks)?`
```sql
| SELECT Nationality FROM table_2_10015132_16 WHERE "School/Club Team" ILIKE '%barton%cc%(ks)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
15484,
29892,
746,
2522,
487,
338,
376,
29955,
29896,
29899,
29955,
29896,
29899,
29953,
29929,
29899,
29955,
29896,
29922,
29906,
29947,
29906,
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,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29896,
313,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
29940,
290,
3381,
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,
29896,
29900,
29941,
29953,
29896,
29906,
29941,
29900,
29918,
29896,
313,
13,
12,
29620,
16985,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29946,
29929,
29896,
29906,
29941,
29918,
29896,
313,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
17185,
310,
3295,
1901,
29908,
1426,
29892,
13,
12,
4205,
1901,
1426,
29892,
13,
12,
29908,
3981,
2722,
319,
7161,
287,
29908,
1426,
29892,
13,
12,
29908,
29940,
1535,
310,
22305,
29908,
1426,
29892,
13,
12,
29908,
15666,
1991,
4007,
12652,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29955,
313,
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,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29929,
29947,
29946,
29955,
29953,
29918,
29953,
313,
13,
12,
9075,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29924,
4992,
313,
395,
1723,
29908,
16985,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29953,
29955,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
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,
5618,
338,
15484,
29892,
746,
2522,
487,
338,
376,
29955,
29896,
29899,
29955,
29896,
29899,
29953,
29929,
29899,
29955,
29896,
29922,
29906,
29947,
29906,
8652,
29952,
13,
28956,
2850,
13,
5097,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29929,
29947,
29946,
29955,
29953,
29918,
29953,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29896,
29899,
29955,
29896,
29899,
29953,
29929,
29899,
29955,
29896,
29922,
29906,
29947,
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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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,
5097,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29929,
29947,
29946,
29955,
29953,
29918,
29953,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29896,
29899,
29955,
29896,
29899,
29953,
29929,
29899,
29955,
29896,
29922,
29906,
29947,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "71-71-69-71=282"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10236830_1 (
"Actors Name" text,
Nomination text,
Director text,
"Film Name" text
);
CREATE TABLE table_1_10361230_1 (
Choice numeric,
"Player name" text,
Round numeric,
Overall numeric,
College text,
Position text
);
CREATE TABLE table_1_11649123_1 (
Year text,
"Scale of Disaster" text,
Disaster text,
"Countries Affected" text,
"Nature of Help" text,
"People Assisted" text
);
CREATE TABLE table_1_11111116_7 (
"No. in series" numeric,
"Directed by" text,
"No. in season" numeric,
Title text,
"Original air date" text,
"Written by" text,
"U.S. viewers (million)" text
);
CREATE TABLE table_2_17198476_6 (
Player text,
Score text,
Place text,
Country text,
"Money ( $ )" numeric,
"To par" text
);
CREATE TABLE table_1_12266757_1 (
"Mens singles" text,
"Mens doubles" text,
Season text,
"Womens singles" text,
"Mixed doubles" text,
"Womens doubles" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Place, when Score is "71-71-69-71=282"?`
```sql
| SELECT Place FROM table_2_17198476_6 WHERE "Score" ILIKE '%71-71-69-71=282%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
8261,
8315,
29915,
29879,
8158,
408,
278,
3271,
3815,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29946,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
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,
2713,
666,
4408,
29908,
1426,
29892,
13,
12,
29908,
29950,
913,
11848,
2596,
29908,
16985,
29892,
13,
12,
29908,
3170,
2440,
29908,
1426,
29892,
13,
12,
9842,
1426,
29892,
13,
12,
23182,
1426,
29892,
13,
12,
6572,
16604,
1426,
29892,
13,
12,
2385,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29941,
29955,
29945,
29941,
29918,
29896,
29946,
313,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
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,
5618,
338,
8261,
8315,
29915,
29879,
8158,
408,
278,
3271,
3815,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
11184,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29941,
29955,
29945,
29941,
29918,
29896,
29946,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
4018,
8315,
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,
5097,
376,
11184,
3815,
8158,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29941,
29955,
29945,
29941,
29918,
29896,
29946,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
4018,
8315,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is richmond's score as the home team?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10953197_4 (
"No. in season" numeric,
Director text,
"Writer(s)" text,
"Production code" text,
Title text,
"Original air date" text,
"No. in series" numeric
);
CREATE TABLE table_1_12232526_2 (
"Ship Name" text,
"Hull Numbers" numeric,
"Service years" text,
Note text,
Origin text,
Previously text,
Class text
);
CREATE TABLE table_2_10773753_14 (
"Home team score" text,
"Away team score" text,
Venue text,
Date text,
"Away team" text,
Crowd numeric,
"Home team" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is richmond's score as the home team?`
```sql
| SELECT "Home team score" FROM table_2_10773753_14 WHERE "Home team" ILIKE '%richmond%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
2245,
457,
29872,
338,
278,
1121,
1058,
338,
278,
8881,
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,
29947,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29906,
29941,
29947,
29947,
29918,
29896,
313,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
29908,
4597,
29889,
24791,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29945,
29945,
29945,
29955,
29941,
29955,
29918,
29896,
313,
13,
12,
29908,
29909,
4201,
293,
3611,
29908,
1426,
29892,
13,
12,
29908,
24636,
3611,
29908,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
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,
10401,
2245,
457,
29872,
338,
278,
1121,
1058,
338,
278,
8881,
29973,
29952,
13,
28956,
2850,
13,
5097,
15944,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29945,
29945,
29945,
29955,
29941,
29955,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29940,
290,
457,
29872,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15944,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29945,
29945,
29945,
29955,
29941,
29955,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29940,
290,
457,
29872,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When nominee is the result who is the director?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11734041_18 (
"School/Club Team/Country" text,
"Height in Ft." text,
"No.(s)" text,
Player text,
"Years for Rockets" text,
Position text
);
CREATE TABLE table_1_12002388_1 (
"Open Cup" text,
League text,
Division text,
Year numeric,
Playoffs text,
"Reg. Season" text
);
CREATE TABLE table_1_26555737_1 (
"Arabic title" text,
"English title" text,
Result text,
"Year (Ceremony)" text,
Director text
);
```
### Answer
Here is the SQL query that answers the question:
`When nominee is the result who is the director?`
```sql
| SELECT Director FROM table_1_26555737_1 WHERE "Result" ILIKE '%Nominee%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
278,
29871,
29906,
299,
4847,
3060,
15806,
364,
289,
29890,
29892,
825,
338,
278,
29871,
29906,
299,
4847,
29915,
29879,
6976,
310,
263,
15613,
4216,
310,
29871,
29929,
29941,
29889,
29945,
29946,
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,
29900,
29955,
29896,
29947,
29945,
29906,
29945,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29941,
313,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
2713,
598,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29946,
29941,
29896,
29929,
29918,
29896,
313,
13,
12,
18420,
1171,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
17241,
6115,
1426,
29892,
13,
12,
29928,
28778,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
29908,
29928,
749,
29914,
21453,
29908,
1426,
29892,
13,
12,
29911,
5271,
5079,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29953,
29953,
29946,
29929,
29945,
29955,
29918,
29906,
313,
13,
12,
29908,
29896,
303,
4847,
29915,
29879,
7348,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29906,
299,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29896,
303,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
310,
263,
4216,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
4847,
29915,
29879,
7348,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29906,
313,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
10401,
278,
29871,
29906,
299,
4847,
3060,
15806,
364,
289,
29890,
29892,
825,
338,
278,
29871,
29906,
299,
4847,
29915,
29879,
6976,
310,
263,
15613,
4216,
310,
29871,
29929,
29941,
29889,
29945,
29946,
29995,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1184,
29890,
3097,
310,
263,
4216,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29953,
29953,
29946,
29929,
29945,
29955,
29918,
29906,
5754,
376,
1184,
29890,
3097,
29871,
29906,
299,
4847,
21614,
29908,
306,
5265,
6059,
14210,
29929,
29941,
29889,
29945,
29946,
7686,
29915,
5300,
376,
29906,
299,
4847,
29915,
29879,
7348,
29908,
306,
5265,
6059,
14210,
29878,
29995,
1327,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1184,
29890,
3097,
310,
263,
4216,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29953,
29953,
29946,
29929,
29945,
29955,
29918,
29906,
5754,
376,
1184,
29890,
3097,
29871,
29906,
299,
4847,
21614,
29908,
306,
5265,
6059,
14210,
29929,
29941,
29889,
29945,
29946,
7686,
29915,
5300,
376,
29906,
299,
4847,
29915,
29879,
7348,
29908,
306,
5265,
6059,
14210,
29878,
29995,
1327,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When the 2nd player chooses r bb, what is the 2nd player's probability of a winning draw of 93.54%?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10718525_2 (
"No. in series" numeric,
"Written by" text,
"Directed by" text,
Title text,
"U.S. viewers (millions)" text,
"No. in season" numeric,
"Original air date" text
);
CREATE TABLE table_1_11274401_3 (
"Rank (#)" text,
"18–49 (Rating/Share)" text,
Timeslot text,
"Air Date" text,
Rating text,
"No." numeric,
"Viewers (m)" text,
Episode text,
Share text
);
CREATE TABLE table_1_1014319_1 (
Goodman text,
Result text,
Horwood text,
Dixon text,
Week numeric,
Total text,
"Dance/song" text,
Tonioli text
);
CREATE TABLE table_2_10664957_2 (
"1st player's choice" text,
"Probability 2nd player wins" text,
"Probability 1st player wins" text,
"Probability of a draw" text,
"2nd player's choice" text
);
CREATE TABLE table_1_12159115_2 (
"Series #" numeric,
"Original air date" text,
"Production code" text,
"Directed by" text
);
```
### Answer
Here is the SQL query that answers the question:
`When the 2nd player chooses r bb, what is the 2nd player's probability of a winning draw of 93.54%?`
```sql
| SELECT "Probability of a draw" FROM table_2_10664957_2 WHERE "Probability 2nd player wins" ILIKE '%93.54%%' AND "2nd player's choice" ILIKE '%r%bb%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
396,
29896,
29953,
7115,
5823,
411,
263,
6856,
310,
901,
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,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29955,
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,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29906,
29900,
29953,
29906,
29918,
29896,
313,
13,
12,
5756,
16985,
29892,
13,
12,
24399,
16985,
29892,
13,
12,
12376,
1426,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
2481,
29914,
8015,
2859,
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,
396,
29896,
29953,
7115,
5823,
411,
263,
6856,
310,
901,
1135,
29871,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
8707,
10810,
29965,
1783,
1955,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29906,
29900,
29953,
29906,
29918,
29896,
5754,
376,
5756,
29908,
1405,
525,
29896,
29915,
5300,
376,
29934,
804,
29908,
353,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8707,
10810,
29965,
1783,
1955,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29906,
29900,
29953,
29906,
29918,
29896,
5754,
376,
5756,
29908,
1405,
525,
29896,
29915,
5300,
376,
29934,
804,
29908,
353,
525,
29896,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was #16 rank constructor with a grid of more than 1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11111116_7 (
"No. in season" numeric,
"Directed by" text,
"No. in series" numeric,
"Original air date" text,
"Written by" text,
Title text,
"U.S. viewers (million)" text
);
CREATE TABLE table_2_1122062_1 (
Grid numeric,
Qual numeric,
Driver text,
Laps numeric,
Rank numeric,
Constructor text,
"Time/Retired" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was #16 rank constructor with a grid of more than 1?`
```sql
| SELECT CONSTRUCTOR FROM table_2_1122062_1 WHERE "Grid" > '1' AND "Rank" = '16' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
12180,
8372,
4891,
746,
366,
1162,
2418,
278,
302,
5301,
20660,
2669,
12807,
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,
29946,
29946,
29955,
29953,
29918,
29947,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29928,
2829,
1308,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
6039,
3901,
1426,
29892,
13,
12,
29924,
524,
482,
16985,
29892,
13,
12,
1123,
3901,
1426,
29892,
13,
12,
22676,
1426,
29892,
13,
12,
2499,
2376,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29941,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29946,
29896,
29955,
29953,
29918,
29896,
313,
13,
12,
29908,
24259,
14045,
14223,
6652,
6202,
3276,
6692,
18416,
29908,
1426,
29892,
13,
12,
29908,
29909,
381,
11004,
11189,
29908,
1426,
29892,
13,
12,
29908,
7967,
579,
13211,
11189,
29908,
1426,
29892,
13,
12,
29908,
13398,
6202,
3276,
6692,
11189,
29908,
1426,
29892,
13,
12,
29908,
29940,
5301,
11189,
29908,
1426,
29892,
13,
12,
29908,
19302,
284,
310,
18236,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29896,
29953,
29918,
29945,
313,
13,
12,
13020,
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,
29900,
29906,
29947,
29941,
29945,
29953,
29918,
29941,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29949,
407,
265,
1237,
1426,
29892,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
7439,
1089,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
3744,
2763,
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,
12180,
8372,
4891,
746,
366,
1162,
2418,
278,
302,
5301,
20660,
2669,
12807,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
7967,
579,
13211,
11189,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29946,
29896,
29955,
29953,
29918,
29896,
5754,
376,
13398,
6202,
3276,
6692,
11189,
29908,
306,
5265,
6059,
14210,
29940,
5301,
29995,
13398,
6202,
3276,
29995,
3170,
29995,
19302,
284,
29001,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
7967,
579,
13211,
11189,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29946,
29896,
29955,
29953,
29918,
29896,
5754,
376,
13398,
6202,
3276,
6692,
11189,
29908,
306,
5265,
6059,
14210,
29940,
5301,
29995,
13398,
6202,
3276,
29995,
3170,
29995,
19302,
284,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the coast guard cross when you recieve the navy distinguished service medal?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12284476_8 (
Series text,
Diameter text,
Denomination text,
Obverse text,
Mintage numeric,
Reverse text,
Weight text,
Alloy text,
Year numeric
);
CREATE TABLE table_1_1140083_2 (
Report text,
"Pole Position" text,
Race text,
"Race Winner" text,
Constructor text,
Location text,
"Fastest Lap" text,
Date text,
Rnd numeric
);
CREATE TABLE table_1_2104176_1 (
"Homeland Security Distinguished Service Medal" text,
"Air Force Cross" text,
"Coast Guard Cross" text,
"Distinguished Service Cross" text,
"Navy Cross" text,
"Medal of Honor" text
);
CREATE TABLE table_1_1140116_5 (
Report text,
Circuit text,
"Winning driver" text,
"Race Name" text
);
CREATE TABLE table_1_1028356_3 (
Score text,
Opponents text,
Championship text,
Partner text,
Surface text,
Outcome text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the coast guard cross when you recieve the navy distinguished service medal?`
```sql
| SELECT "Coast Guard Cross" FROM table_1_2104176_1 WHERE "Distinguished Service Cross" ILIKE '%Navy%Distinguished%Service%Medal%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3525,
1784,
364,
3885,
750,
278,
8158,
29871,
29946,
29946,
29899,
29906,
29906,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29896,
29941,
29947,
29896,
29947,
29918,
29896,
313,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
7717,
26049,
29908,
1426,
29892,
13,
12,
29908,
25865,
26049,
29908,
1426,
29892,
13,
12,
29908,
5261,
2523,
800,
322,
12767,
403,
26049,
29908,
1426,
29892,
13,
12,
29908,
29909,
9431,
293,
669,
3014,
26049,
29908,
1426,
29892,
13,
12,
29908,
29950,
7889,
27562,
669,
6607,
800,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29941,
29953,
29955,
29918,
29906,
313,
13,
12,
29908,
29995,
310,
5972,
11719,
29908,
1426,
29892,
13,
12,
29908,
29937,
310,
21669,
29908,
16985,
29892,
13,
12,
29908,
15263,
8271,
29908,
16985,
29892,
13,
12,
29908,
29937,
310,
22091,
2113,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29896,
29906,
29945,
29953,
29900,
29953,
29947,
29918,
29941,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
29908,
11184,
29914,
29909,
1582,
29908,
1426,
29892,
13,
12,
29934,
618,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29896,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
3525,
1784,
364,
3885,
750,
278,
8158,
29871,
29946,
29946,
29899,
29906,
29906,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29934,
618,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29906,
29945,
29953,
29900,
29953,
29947,
29918,
29941,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29946,
29946,
29899,
29906,
29906,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29934,
618,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29906,
29945,
29953,
29900,
29953,
29947,
29918,
29941,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29946,
29946,
29899,
29906,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`how many rounds had the score 44-22`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12113818_1 (
Year text,
"Local Affairs" text,
"External Affairs" text,
"Communications and Corporate Affairs" text,
"Academic & University Affairs" text,
"Human Resources & Operations" text
);
CREATE TABLE table_1_106367_2 (
"% of popular vote" text,
"# of candidates" numeric,
"General election" numeric,
"# of seats won" numeric
);
CREATE TABLE table_1_21256068_3 (
Attendance numeric,
Result text,
Date text,
Venue text,
Competition text,
"Home/Away" text,
Round text,
Score text,
Opponent text
);
CREATE TABLE table_1_12303563_1 (
"#" numeric,
"Runners-up" numeric,
"4th Place" numeric,
Nation text,
"3rd Place" numeric,
Winners numeric
);
```
### Answer
Here is the SQL query that answers the question:
`how many rounds had the score 44-22`
```sql
| SELECT COUNT(Round) FROM table_1_21256068_3 WHERE "Score" ILIKE '%44-22%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29896,
29889,
29929,
29941,
363,
317,
5990,
29880,
1648,
1383,
10028,
1099,
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,
29955,
29900,
29906,
29953,
29896,
29918,
29906,
313,
13,
12,
29908,
29945,
29946,
26532,
29908,
1426,
29892,
13,
12,
29908,
29924,
3930,
310,
15354,
29908,
1426,
29892,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
17734,
1076,
8158,
29908,
1426,
29892,
13,
12,
29908,
16802,
29898,
29879,
6817,
786,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29955,
29947,
29929,
29953,
29946,
29918,
29941,
313,
13,
12,
29908,
29896,
29889,
29947,
29945,
29908,
1426,
29892,
13,
12,
7011,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29896,
29889,
29929,
29941,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29896,
29889,
29929,
29941,
363,
317,
5990,
29880,
1648,
1383,
10028,
1099,
29973,
29952,
13,
28956,
2850,
13,
5097,
29871,
29896,
29889,
29929,
29941,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29955,
29947,
29929,
29953,
29946,
29918,
29941,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
4501,
300,
29880,
1648,
29995,
845,
10028,
1099,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
29871,
29896,
29889,
29929,
29941,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29955,
29947,
29929,
29953,
29946,
29918,
29941,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
4501,
300,
29880,
1648,
29995,
845,
10028,
1099,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the 1.93 for Svetlana Shkolina?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11570261_2 (
"54 holes" text,
"Margin of victory" text,
Championship text,
Year numeric,
"Winning score" text,
"Runner(s)-up" text
);
CREATE TABLE table_2_18578964_3 (
"1.85" text,
Height numeric,
Nationality text,
Name text,
"1.93" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the 1.93 for Svetlana Shkolina?`
```sql
| SELECT 1.93 FROM table_2_18578964_3 WHERE "Name" ILIKE '%svetlana%shkolina%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1353,
310,
6606,
411,
409,
7830,
2920,
310,
29871,
29941,
29889,
29946,
322,
409,
7830,
3309,
310,
29871,
29945,
29889,
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,
29896,
29955,
29947,
29906,
29955,
29896,
29918,
29896,
313,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
29908,
16985,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29923,
12907,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29906,
29896,
29947,
29955,
29900,
29918,
29941,
29906,
313,
13,
12,
29853,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
8120,
1338,
1426,
29892,
13,
12,
9652,
267,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29955,
29906,
29906,
29946,
29918,
29896,
313,
13,
12,
29908,
29925,
26310,
2920,
29908,
1426,
29892,
13,
12,
29908,
29925,
26310,
3309,
29908,
1426,
29892,
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,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1170,
278,
1353,
310,
6606,
411,
409,
7830,
2920,
310,
29871,
29941,
29889,
29946,
322,
409,
7830,
3309,
310,
29871,
29945,
29889,
29946,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
10649,
2478,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29955,
29906,
29906,
29946,
29918,
29896,
5754,
376,
29903,
1022,
284,
2920,
29908,
306,
5265,
6059,
14210,
29941,
29889,
29946,
29001,
5300,
376,
29903,
1022,
284,
3309,
29908,
306,
5265,
6059,
14210,
29945,
29889,
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,
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,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
10649,
2478,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29955,
29906,
29906,
29946,
29918,
29896,
5754,
376,
29903,
1022,
284,
2920,
29908,
306,
5265,
6059,
14210,
29941,
29889,
29946,
29001,
5300,
376,
29903,
1022,
284,
3309,
29908,
306,
5265,
6059,
14210,
29945,
29889,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the number of species with sepal width of 3.4 and sepal length of 5.4`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11178271_1 (
"Viewers (m)" text,
"Air Date" text,
"18–49 (Rating/Share)" text,
"#" numeric,
Rating text,
"Weekly Rank" numeric,
Share numeric,
Episode text
);
CREATE TABLE table_1_12321870_32 (
Period text,
Position text,
Country text,
Goals text,
Matches text,
"Player name" text
);
CREATE TABLE table_1_10477224_1 (
"Petal width" text,
"Petal length" text,
Species text,
"Sepal length" text,
"Sepal width" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the number of species with sepal width of 3.4 and sepal length of 5.4`
```sql
| SELECT COUNT(Species) FROM table_1_10477224_1 WHERE "Sepal width" ILIKE '%3.4%' AND "Sepal length" ILIKE '%5.4%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
2750,
995,
411,
3109,
1135,
29871,
29929,
3291,
322,
901,
1135,
29871,
29953,
5714,
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,
29896,
29929,
29906,
29896,
29906,
29918,
29896,
313,
13,
12,
29924,
898,
388,
1426,
29892,
13,
12,
29903,
870,
388,
1426,
29892,
13,
12,
29943,
2429,
388,
1426,
29892,
13,
12,
29911,
1041,
3250,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29903,
20510,
1426,
29892,
13,
12,
1349,
1295,
3250,
1426,
29892,
13,
12,
29956,
287,
4515,
3250,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29906,
29900,
29929,
29900,
29945,
29918,
29906,
313,
13,
12,
19409,
1426,
29892,
13,
12,
29928,
17678,
1426,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
14769,
475,
303,
16985,
29892,
13,
12,
24515,
1233,
16985,
29892,
13,
12,
13454,
287,
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,
19604,
2750,
995,
411,
3109,
1135,
29871,
29929,
3291,
322,
901,
1135,
29871,
29953,
5714,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
14769,
475,
303,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29906,
29900,
29929,
29900,
29945,
29918,
29906,
5754,
376,
20325,
29908,
529,
525,
29929,
29915,
5300,
376,
29931,
520,
29908,
1405,
525,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
14769,
475,
303,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29906,
29900,
29929,
29900,
29945,
29918,
29906,
5754,
376,
20325,
29908,
529,
525,
29929,
29915,
5300,
376,
29931,
520,
29908,
1405,
525,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the lowest against value with less than 9 points and more than 6 lost?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11019212_1 (
Monday text,
Sunday text,
Friday text,
Tuesday text,
Location text,
Saturday text,
Thursday text,
Wednesday text
);
CREATE TABLE table_2_15220905_2 (
Team text,
Difference text,
Lost numeric,
Points numeric,
Position numeric,
Against numeric,
Drawn numeric,
Played numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the lowest against value with less than 9 points and more than 6 lost?`
```sql
| SELECT MIN(Against) FROM table_2_15220905_2 WHERE "Points" < '9' AND "Lost" > '6' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
20699,
29914,
3597,
362,
363,
1603,
8471,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29955,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
10507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29941,
29953,
29900,
29896,
29918,
29896,
29896,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
19409,
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,
29900,
29900,
29900,
29896,
29947,
29896,
29918,
29896,
313,
13,
12,
29908,
2792,
29914,
357,
768,
706,
29908,
1426,
29892,
13,
12,
29908,
7583,
269,
1188,
273,
29908,
1426,
29892,
13,
12,
29908,
1626,
29914,
7042,
12384,
29908,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
7583,
3652,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29906,
29953,
29918,
29896,
313,
13,
12,
29908,
29931,
2347,
746,
313,
590,
29874,
1723,
29908,
1426,
29892,
13,
12,
29908,
29943,
2209,
309,
2407,
29908,
1426,
29892,
13,
12,
10649,
2478,
1426,
29892,
13,
12,
29908,
29931,
2347,
988,
29908,
1426,
29892,
13,
12,
29908,
4205,
11911,
29891,
847,
17745,
310,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29929,
29941,
29900,
29953,
29918,
29906,
313,
13,
12,
4205,
29883,
16985,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
29892,
13,
12,
17936,
16985,
29892,
13,
12,
29908,
24636,
3611,
29908,
1426,
29892,
13,
12,
29908,
17936,
931,
29908,
1426,
29892,
13,
12,
29908,
29934,
30099,
655,
2397,
3611,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
20699,
29914,
3597,
362,
363,
1603,
8471,
29952,
13,
28956,
2850,
13,
5097,
376,
4205,
11911,
29891,
847,
17745,
310,
1024,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29906,
29953,
29918,
29896,
5754,
376,
29943,
2209,
309,
2407,
29908,
306,
5265,
6059,
14210,
303,
453,
29995,
29880,
4357,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4205,
11911,
29891,
847,
17745,
310,
1024,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29906,
29953,
29918,
29896,
5754,
376,
29943,
2209,
309,
2407,
29908,
306,
5265,
6059,
14210,
303,
453,
29995,
29880,
4357,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Tell me the discovery/publication for still living`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10470082_7 (
"No." numeric,
"US air date" text,
Director text,
"#" numeric,
Title text,
Villains text,
Storyteller text,
Writer text
);
CREATE TABLE table_1_11963601_11 (
"High rebounds" text,
"Location Attendance" text,
Series text,
Game numeric,
Score text,
Date text,
Team text,
"High points" text,
"High assists" text
);
CREATE TABLE table_1_1000181_1 (
"State/territory" text,
"Current slogan" text,
"Text/background colour" text,
Format text,
Notes text,
"Current series" text
);
CREATE TABLE table_2_10326_1 (
"Lived when ( mya )" text,
"Fossil record" text,
Species text,
"Lived where" text,
"Discovery / publication of name" text
);
CREATE TABLE table_1_11839306_2 (
Disc numeric,
Artist text,
"Japanese title" text,
Track numeric,
"English title" text,
"Track time" text,
"Rōmaji title" text
);
```
### Answer
Here is the SQL query that answers the question:
`Tell me the discovery/publication for still living`
```sql
| SELECT "Discovery / publication of name" FROM table_2_10326_1 WHERE "Fossil record" ILIKE '%still%living%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
6588,
363,
278,
3815,
411,
29871,
29941,
29946,
297,
29871,
29947,
29947,
29914,
29947,
29929,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29953,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29946,
29946,
29953,
29900,
29900,
29947,
29945,
29918,
29941,
313,
13,
12,
29909,
19698,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29896,
29929,
29947,
29955,
29899,
29947,
29947,
29908,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
13454,
287,
16985,
29892,
13,
12,
29908,
29896,
29929,
29947,
29947,
29899,
29947,
29929,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29947,
29929,
29899,
29929,
29900,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
6588,
363,
278,
3815,
411,
29871,
29941,
29946,
297,
29871,
29947,
29947,
29914,
29947,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
319,
19698,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29946,
29953,
29900,
29900,
29947,
29945,
29918,
29941,
5754,
376,
29896,
29929,
29947,
29947,
29899,
29947,
29929,
29908,
306,
5265,
6059,
14210,
29941,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29896,
29946,
29946,
29953,
29900,
29900,
29947,
29945,
29918,
29941,
5754,
376,
29896,
29929,
29947,
29947,
29899,
29947,
29929,
29908,
306,
5265,
6059,
14210,
29941,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the average for the team with 34 in 88/89?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10953197_6 (
"No. in season" numeric,
"No. in series" numeric,
"Writer(s)" text,
Title text,
Director text,
"Original air date" text,
"Production code" text
);
CREATE TABLE table_1_14460085_3 (
Average text,
Team text,
"1987-88" text,
Points numeric,
Played numeric,
"1988-89" text,
"1989-90" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the average for the team with 34 in 88/89?`
```sql
| SELECT Average FROM table_1_14460085_3 WHERE "1988-89" ILIKE '%34%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
15247,
4220,
310,
278,
315,
4293,
647,
411,
263,
3878,
29939,
5279,
310,
29871,
29946,
29878,
561,
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,
29945,
29929,
29896,
29896,
29945,
29918,
29906,
313,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29941,
29945,
29945,
29946,
29947,
29918,
29896,
313,
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,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29947,
29947,
29929,
29896,
29955,
29918,
29906,
313,
13,
12,
29925,
332,
4220,
1426,
29892,
13,
12,
29907,
4293,
647,
1426,
29892,
13,
12,
29908,
29943,
7971,
5279,
29908,
1426,
29892,
13,
12,
29933,
392,
1426,
29892,
13,
12,
29908,
13799,
6766,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29896,
29929,
29953,
29918,
29941,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
14199,
16985,
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,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29906,
313,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
4763,
29879,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29955,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
27933,
11454,
303,
29908,
1426,
29892,
13,
12,
29967,
332,
275,
29467,
1426,
29892,
13,
12,
29908,
14769,
475,
303,
1019,
6335,
654,
29908,
16985,
29892,
13,
12,
29908,
27933,
1152,
29908,
1426,
29892,
13,
12,
29908,
2831,
1019,
6335,
654,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
15247,
4220,
310,
278,
315,
4293,
647,
411,
263,
3878,
29939,
5279,
310,
29871,
29946,
29878,
561,
29973,
29952,
13,
28956,
2850,
13,
5097,
15247,
4220,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29947,
29947,
29929,
29896,
29955,
29918,
29906,
5754,
376,
29943,
7971,
5279,
29908,
306,
5265,
6059,
14210,
29946,
29878,
561,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15247,
4220,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29947,
29947,
29929,
29896,
29955,
29918,
29906,
5754,
376,
29943,
7971,
5279,
29908,
306,
5265,
6059,
14210,
29946,
29878,
561,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Purpose of the Callsign with a Freq currently of 4rph?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12159115_2 (
"Production code" text,
"Series #" numeric,
"Written by" text,
"Original air date" text,
"Directed by" text,
Title text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_1_10935548_1 (
"U.S. viewers (millions)" text,
"No. in series" numeric,
"Original air date" text,
"Directed by" text,
"No. in season" numeric
);
CREATE TABLE table_2_17188917_2 (
Purpose text,
Callsign text,
"Freq currently" text,
Band text,
"Area served" text
);
CREATE TABLE table_1_11960196_3 (
Series text,
"High rebounds" text,
Score text,
Game numeric,
"High points" text,
"Location Attendance" text,
Team text,
"High assists" text,
Date text
);
CREATE TABLE table_1_1012730_2 (
"Top 5" numeric,
Year numeric,
"Team(s)" text,
Winnings text,
Poles numeric,
"Avg. Start" text,
"Top 10" numeric,
Position text,
"Avg. Finish" text,
Wins numeric,
Starts numeric
);
CREATE TABLE table_1_120778_1 (
"Percent Against" text,
Jurisdiction text,
"Against Prohibition" numeric,
"Percent For" text,
"For Prohibition" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Purpose of the Callsign with a Freq currently of 4rph?`
```sql
| SELECT Purpose FROM table_2_17188917_2 WHERE "Freq currently" ILIKE '%4rph%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3525,
1784,
1722,
29871,
29906,
299,
325,
25609,
750,
318,
29896,
29945,
29871,
29941,
5499,
20444,
1641,
330,
29873,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29941,
313,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29900,
29906,
29941,
29918,
29896,
313,
13,
12,
5627,
1426,
29892,
13,
12,
4557,
1426,
29892,
13,
12,
29908,
12883,
4240,
29908,
16985,
29892,
13,
12,
29908,
29911,
4345,
9681,
29908,
1426,
29892,
13,
12,
29908,
8179,
9081,
1134,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29945,
313,
13,
12,
29908,
29965,
29896,
29945,
29871,
29906,
299,
6599,
29908,
1426,
29892,
13,
12,
29908,
6585,
29871,
29896,
303,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29945,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29941,
5499,
15682,
29908,
1426,
29892,
13,
12,
29907,
3973,
16985,
29892,
13,
12,
29908,
6585,
29871,
29906,
299,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29941,
5499,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29906,
299,
15682,
29908,
1426,
29892,
13,
12,
29908,
6585,
29871,
29941,
5499,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29896,
303,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29946,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29896,
303,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29953,
386,
6599,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29929,
29941,
29900,
29953,
29918,
29906,
313,
13,
12,
29908,
17936,
931,
29908,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
29892,
13,
12,
4205,
29883,
16985,
29892,
13,
12,
17936,
16985,
29892,
13,
12,
29908,
24636,
3611,
29908,
1426,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
29908,
29934,
30099,
655,
2397,
3611,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
3525,
1784,
1722,
29871,
29906,
299,
325,
25609,
750,
318,
29896,
29945,
29871,
29941,
5499,
20444,
1641,
330,
29873,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
6585,
29871,
29906,
299,
15682,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29945,
5754,
376,
29965,
29896,
29945,
29871,
29941,
5499,
6599,
29908,
306,
5265,
6059,
14210,
23799,
29001,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6585,
29871,
29906,
299,
15682,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29945,
5754,
376,
29965,
29896,
29945,
29871,
29941,
5499,
6599,
29908,
306,
5265,
6059,
14210,
23799,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`how many open 2nd viii had u15 3rd iv being gt`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10953197_3 (
"Production code" text,
Director text,
"No. in series" numeric,
"No. in season" numeric,
Title text,
"Original air date" text,
"Writer(s)" text
);
CREATE TABLE table_1_1166023_1 (
Builder text,
Number text,
"Year built" numeric,
"TMS Number" text,
"Carriage type" text
);
CREATE TABLE table_1_11318462_5 (
"U15 2nd IV" text,
"Open 1st VIII" text,
"U15 5th IV" text,
"U16 3rd VIII" text,
Crew numeric,
"Open 2nd VIII" text,
"U15 3rd IV" text,
"U16 2nd VIII" text,
"Open 3rd VIII" text,
"U16 1st VIII" text,
"U15 4th IV" text,
"U15 1st IV" text,
"U15 6th IV" text
);
CREATE TABLE table_1_11839306_2 (
"Track time" text,
"Japanese title" text,
Disc numeric,
Track numeric,
"English title" text,
Artist text,
"Rōmaji title" text
);
```
### Answer
Here is the SQL query that answers the question:
`how many open 2nd viii had u15 3rd iv being gt`
```sql
| SELECT COUNT("Open 2nd VIII") FROM table_1_11318462_5 WHERE "U15 3rd IV" ILIKE '%GT%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
319,
1582,
3815,
756,
263,
2522,
487,
310,
29871,
29900,
29994,
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,
29955,
29953,
29929,
29947,
29918,
29896,
313,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
29908,
7031,
885,
9386,
29908,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
1349,
1823,
2058,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29945,
29946,
29945,
29941,
29929,
29918,
29945,
313,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29911,
347,
694,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
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,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
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,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
23184,
29908,
1426,
29892,
13,
12,
29908,
2385,
22704,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
8905,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
6344,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29896,
29941,
29947,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
29909,
9431,
293,
669,
3014,
26049,
29908,
1426,
29892,
13,
12,
29908,
5261,
2523,
800,
322,
12767,
403,
26049,
29908,
1426,
29892,
13,
12,
29908,
25865,
26049,
29908,
1426,
29892,
13,
12,
29908,
29950,
7889,
27562,
669,
6607,
800,
29908,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
7717,
26049,
29908,
1426,
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,
319,
1582,
3815,
756,
263,
2522,
487,
310,
29871,
29900,
29994,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29945,
29946,
29945,
29941,
29929,
29918,
29945,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29900,
29994,
29941,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29945,
29946,
29945,
29941,
29929,
29918,
29945,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29900,
29994,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Away team has a Score of 0–3?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1167698_1 (
Champion text,
"Top scorer" text,
"Runner-up" text,
Season text,
"Third place" text
);
CREATE TABLE table_2_15154539_5 (
"Home team" text,
Attendance text,
Score text,
"Tie no" text,
"Away team" text
);
CREATE TABLE table_1_11545282_4 (
"Years for Jazz" text,
"No." numeric,
"School/Club Team" text,
Nationality text,
Player text,
Position text
);
CREATE TABLE table_1_10399701_2 (
"Class AAAA" text,
"Class A" text,
"Class AAAAA" text,
"Class AA" text,
"School Year" text,
"Class AAA" text
);
CREATE TABLE table_1_12113818_1 (
"Academic & University Affairs" text,
"Communications and Corporate Affairs" text,
"External Affairs" text,
"Human Resources & Operations" text,
Year text,
"Local Affairs" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Away team has a Score of 0–3?`
```sql
| SELECT "Away team" FROM table_2_15154539_5 WHERE "Score" ILIKE '%0–3%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
29871,
29906,
29900,
29900,
29947,
29879,
505,
29871,
29953,
29889,
29929,
408,
263,
29871,
29906,
29900,
29900,
29953,
29892,
411,
263,
29871,
29906,
29900,
29900,
29955,
3109,
1135,
29871,
29955,
29889,
29896,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29900,
29955,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
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,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29945,
313,
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,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
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,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29953,
313,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29953,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29946,
29896,
29900,
29918,
29929,
313,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29955,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29947,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29953,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29953,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
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,
5328,
1784,
29871,
29906,
29900,
29900,
29947,
29879,
505,
29871,
29953,
29889,
29929,
408,
263,
29871,
29906,
29900,
29900,
29953,
29892,
411,
263,
29871,
29906,
29900,
29900,
29955,
3109,
1135,
29871,
29955,
29889,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29906,
29900,
29900,
29947,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29946,
29896,
29900,
29918,
29929,
5754,
376,
29906,
29900,
29900,
29953,
29908,
353,
525,
29953,
29889,
29929,
29915,
5300,
376,
29906,
29900,
29900,
29955,
29908,
529,
525,
29955,
29889,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29900,
29900,
29947,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29946,
29896,
29900,
29918,
29929,
5754,
376,
29906,
29900,
29900,
29953,
29908,
353,
525,
29953,
29889,
29929,
29915,
5300,
376,
29906,
29900,
29900,
29955,
29908,
529,
525,
29955,
29889,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1137707_2 (
"Fastest Lap" text,
"Winning Constructor" text,
"Winning Driver" text,
"Grand Prix" text,
"Pole Position" text,
Location text,
Report text,
Date text,
Round numeric
);
CREATE TABLE table_1_11630008_5 (
"Written by" text,
"Original air date" text,
"Season #" numeric,
"Directed by" text,
"Production code" numeric,
Title text,
"Series #" numeric
);
CREATE TABLE table_1_10953197_6 (
"Writer(s)" text,
"No. in season" numeric,
"Production code" text,
Director text,
"No. in series" numeric
);
CREATE TABLE table_1_11111116_6 (
"Directed by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"No. in series" numeric
);
CREATE TABLE table_2_182410_9 (
"2009" numeric,
"2007" numeric,
"2010" numeric,
"2008" numeric,
"2006" numeric
);
CREATE TABLE table_1_11734041_6 (
Position text,
"Years for Rockets" text,
"No.(s)" text,
"School/Club Team/Country" text,
"Height in Ft." text,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?`
```sql
| SELECT COUNT(2008) FROM table_2_182410_9 WHERE "2006" = '6.9' AND "2007" < '7.1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
2407,
373,
3979,
29871,
29955,
29892,
746,
278,
23995,
296,
8158,
471,
3109,
1135,
29871,
29929,
29929,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29941,
29906,
29945,
29906,
29953,
29918,
29906,
313,
13,
12,
29908,
3170,
2440,
29908,
1426,
29892,
13,
12,
29908,
2713,
666,
4408,
29908,
1426,
29892,
13,
12,
29908,
29950,
913,
11848,
2596,
29908,
16985,
29892,
13,
12,
23182,
1426,
29892,
13,
12,
6572,
16604,
1426,
29892,
13,
12,
9842,
1426,
29892,
13,
12,
2385,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29941,
29941,
29946,
29953,
29918,
29941,
313,
13,
12,
29908,
29949,
407,
265,
296,
8158,
29908,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29940,
1691,
3291,
29908,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
855,
276,
557,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29941,
29906,
29929,
29900,
29918,
29906,
313,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29934,
1218,
29914,
2713,
598,
313,
29896,
29947,
29899,
29946,
29929,
5513,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
3706,
8276,
5513,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
11147,
5513,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
18448,
5513,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29946,
29896,
29945,
29953,
29918,
29896,
313,
13,
12,
2369,
509,
1934,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29925,
374,
911,
341,
4992,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
5166,
29908,
1426,
29892,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
29931,
14556,
5166,
29908,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29945,
29918,
29906,
313,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29896,
29955,
29896,
29946,
29918,
29906,
313,
13,
12,
29908,
3492,
865,
364,
1241,
12965,
29908,
1426,
29892,
13,
12,
29908,
15263,
12965,
29908,
1426,
29892,
13,
12,
29908,
27648,
2708,
12965,
29908,
1426,
29892,
13,
12,
29908,
20325,
12965,
29908,
1426,
29892,
13,
12,
29908,
4074,
3146,
307,
12965,
29908,
1426,
29892,
13,
12,
29908,
29911,
307,
1725,
29877,
23786,
8583,
29908,
1426,
29892,
13,
12,
27276,
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,
373,
3979,
29871,
29955,
29892,
746,
278,
23995,
296,
8158,
471,
3109,
1135,
29871,
29929,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29941,
29941,
29946,
29953,
29918,
29941,
5754,
376,
29949,
407,
265,
296,
8158,
29908,
529,
525,
29929,
29929,
29915,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
1096,
29995,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29941,
29941,
29946,
29953,
29918,
29941,
5754,
376,
29949,
407,
265,
296,
8158,
29908,
529,
525,
29929,
29929,
29915,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
1096,
29995,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the record on November 7, when the opponent score was less than 99?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12232526_2 (
"Service years" text,
"Ship Name" text,
"Hull Numbers" numeric,
Origin text,
Previously text,
Note text,
Class text
);
CREATE TABLE table_2_17323346_3 (
"Opponent score" numeric,
Date text,
"Nets points" numeric,
Result text,
Opponent text,
Record text,
Streak text,
Game numeric
);
CREATE TABLE table_1_11253290_2 (
Episode text,
"Rating/Share (18-49)" text,
"Rank (timeslot)" numeric,
"Viewers (millions)" text,
Share numeric,
Rating text,
"Rank (night)" numeric,
"Rank (week)" text,
"#" numeric
);
CREATE TABLE table_1_12454156_1 (
Entrants numeric,
Winner text,
"Prize Money" text,
"Winning Hand" text,
"Runner-Up" text,
"Losing Hand" text,
Year numeric
);
CREATE TABLE table_1_1140085_2 (
"Race Winner" text,
Race text,
"Fastest Lap" text,
"Pole Position" text,
Location text,
Constructor text,
Report text,
Rnd numeric
);
CREATE TABLE table_1_12261714_2 (
"Young rider classification" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text,
Stage text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the record on November 7, when the opponent score was less than 99?`
```sql
| SELECT Record FROM table_2_17323346_3 WHERE "Opponent score" < '99' AND "Date" ILIKE '%november%7%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
3815,
29871,
29906,
750,
263,
1473,
2814,
310,
29871,
29941,
29899,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29947,
29953,
29900,
29896,
29945,
29918,
29955,
313,
13,
12,
15790,
29879,
16985,
29892,
13,
12,
29908,
12883,
29898,
29879,
5513,
1426,
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,
29896,
29896,
29946,
29900,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29945,
29941,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29899,
29946,
29929,
29908,
1426,
29892,
13,
12,
1043,
414,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
2713,
598,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29896,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
29902,
29878,
728,
1024,
29908,
1426,
29892,
13,
12,
29908,
29902,
29878,
728,
7726,
414,
29908,
1426,
29892,
13,
12,
29908,
24636,
1024,
29908,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
3981,
29891,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29946,
29941,
29953,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
19409,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
2814,
29908,
1426,
29892,
13,
12,
29908,
29909,
1505,
1213,
1426,
29892,
13,
12,
29908,
29896,
303,
2814,
29908,
1426,
29892,
13,
12,
29908,
19409,
29871,
29896,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29953,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
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,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
3815,
29871,
29906,
750,
263,
1473,
2814,
310,
29871,
29941,
29899,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
19409,
29871,
29906,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29946,
29941,
29953,
29955,
29906,
29918,
29896,
5754,
376,
29906,
299,
2814,
29908,
306,
5265,
6059,
14210,
29941,
29899,
29906,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
19409,
29871,
29906,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29946,
29941,
29953,
29955,
29906,
29918,
29896,
5754,
376,
29906,
299,
2814,
29908,
306,
5265,
6059,
14210,
29941,
29899,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What team 2 had a second leg of 3-2?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12086015_7 (
Finals numeric,
"Year(s)" text,
Nationality text,
"Win-Loss" text,
Player text
);
CREATE TABLE table_1_1140080_2 (
Date text,
Report text,
"Race Winner" text,
Constructor text,
"Pole Position" text,
Race text,
Location text,
Rnd numeric,
"Fastest Lap" text
);
CREATE TABLE table_1_11753080_2 (
"Air Date" text,
"Weekly Rank" text,
"18-49" text,
Viewers text,
Rating text,
Episode text,
Timeslot text,
"#" numeric,
Share numeric
);
CREATE TABLE table_1_101196_1 (
"Irish name" text,
"Irish speakers" text,
"English name" text,
Population numeric,
County text
);
CREATE TABLE table_2_12443672_1 (
"Team 2" text,
"2nd leg" text,
"Agg." text,
"1st leg" text,
"Team 1" text
);
CREATE TABLE table_1_11734041_6 (
Position text,
"School/Club Team/Country" text,
"Height in Ft." text,
"Years for Rockets" text,
"No.(s)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What team 2 had a second leg of 3-2?`
```sql
| SELECT "Team 2" FROM table_2_12443672_1 WHERE "2nd leg" ILIKE '%3-2%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
6588,
6909,
746,
278,
8158,
471,
29871,
29953,
29947,
29899,
29953,
29929,
29899,
29953,
29947,
29899,
29955,
29906,
29922,
29906,
29955,
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,
29945,
29955,
29955,
29929,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
29945,
386,
15484,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
15484,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29906,
299,
15484,
29908,
1426,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
1426,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29945,
29945,
29947,
29896,
29896,
29918,
29941,
313,
13,
12,
29908,
29924,
4992,
313,
395,
1723,
29908,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
6588,
6909,
746,
278,
8158,
471,
29871,
29953,
29947,
29899,
29953,
29929,
29899,
29953,
29947,
29899,
29955,
29906,
29922,
29906,
29955,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
703,
29924,
4992,
313,
395,
1723,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29945,
29945,
29947,
29896,
29896,
29918,
29941,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29953,
29947,
29899,
29953,
29929,
29899,
29953,
29947,
29899,
29955,
29906,
29922,
29906,
29955,
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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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,
5097,
16884,
29954,
703,
29924,
4992,
313,
395,
1723,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29945,
29945,
29947,
29896,
29896,
29918,
29941,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29953,
29947,
29899,
29953,
29929,
29899,
29953,
29947,
29899,
29955,
29906,
29922,
29906,
29955,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the average money when the score was 68-69-68-72=277?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11577996_1 (
"5th Place" text,
"1st Place" text,
Year numeric,
"2nd Place" text,
"3rd Place" text,
"4th Place" text,
Location text
);
CREATE TABLE table_2_18155811_3 (
"Money ( $ )" numeric,
Country text,
Place text,
Score text,
"To par" text,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the average money when the score was 68-69-68-72=277?`
```sql
| SELECT AVG("Money ( $ )") FROM table_2_18155811_3 WHERE "Score" ILIKE '%68-69-68-72=277%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9281,
1629,
393,
848,
338,
3625,
363,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29945,
29941,
29896,
29955,
29918,
29906,
313,
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,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29941,
29946,
29947,
29941,
29946,
29918,
29896,
29906,
313,
13,
12,
29908,
11536,
21614,
29908,
16985,
29892,
13,
12,
29924,
1175,
943,
16985,
29892,
13,
12,
29908,
1299,
29925,
21614,
29908,
16985,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
16985,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29906,
29953,
29929,
29929,
29900,
29918,
29896,
313,
13,
12,
7185,
517,
16985,
29892,
13,
12,
6970,
29887,
2162,
16985,
29892,
13,
12,
29923,
333,
4501,
1025,
16985,
29892,
13,
12,
29954,
388,
299,
801,
16985,
29892,
13,
12,
29924,
870,
431,
495,
29874,
16985,
29892,
13,
12,
5894,
719,
16985,
29892,
13,
12,
29908,
11536,
11069,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9281,
1629,
393,
848,
338,
3625,
363,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29941,
29946,
29947,
29941,
29946,
29918,
29896,
29906,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29979,
26441,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29941,
29946,
29947,
29941,
29946,
29918,
29896,
29906,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the latest year that data is available for?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10715317_2 (
"Written by" text,
"No. in season" numeric,
Title text,
"Directed by" text,
"Original air date" text,
"U.S. viewers (millions)" text,
"No. in series" numeric
);
CREATE TABLE table_1_22834834_12 (
"Total wins" numeric,
Majors numeric,
"ATP wins" numeric,
"Earnings ($)" numeric,
"Money list rank" numeric,
Year numeric
);
CREATE TABLE table_1_12526990_1 (
Monto numeric,
Biggenden numeric,
Eidsvold numeric,
Gayndah numeric,
Mundubbera numeric,
Perry numeric,
"Total Region" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the latest year that data is available for?`
```sql
| SELECT MAX(YEAR) FROM table_1_22834834_12 |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
750,
278,
1002,
4695,
310,
1556,
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,
29896,
29918,
29896,
29896,
29945,
29953,
29946,
29906,
29947,
29918,
29906,
313,
13,
12,
29908,
29956,
272,
2395,
285,
29899,
29883,
7087,
29908,
16985,
29892,
13,
12,
29908,
29956,
272,
2395,
17900,
7087,
29908,
16985,
29892,
13,
12,
29908,
6730,
29899,
1990,
10638,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
1293,
319,
10638,
29908,
1426,
29892,
13,
12,
29908,
1170,
310,
5962,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29906,
29900,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
3563,
497,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29906,
29941,
29896,
29946,
29918,
29945,
313,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29900,
5513,
16985,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29900,
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,
29929,
29900,
5513,
16985,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29896,
29929,
29947,
29900,
5513,
16985,
29892,
13,
12,
29908,
27933,
313,
29896,
29929,
29929,
29900,
5513,
1426,
29892,
13,
12,
2792,
1426,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29929,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29906,
29955,
29947,
29953,
29929,
29918,
29929,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
27276,
1426,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9513,
4695,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29953,
29955,
29953,
29896,
29900,
29918,
29896,
313,
13,
12,
29911,
272,
802,
1426,
29892,
13,
12,
4300,
6737,
1426,
29892,
13,
12,
29911,
332,
833,
1426,
29892,
13,
12,
29908,
29943,
2491,
360,
27657,
29908,
1426,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
21472,
1426,
29892,
13,
12,
2308,
326,
1426,
29892,
13,
12,
5894,
13390,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
750,
278,
1002,
4695,
310,
1556,
1223,
2879,
29973,
29952,
13,
28956,
2850,
13,
5097,
4408,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29906,
29955,
29947,
29953,
29929,
29918,
29929,
5754,
376,
9513,
4695,
29908,
306,
5265,
6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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29947,
29896,
29906,
29955,
29947,
29953,
29929,
29918,
29929,
5754,
376,
9513,
4695,
29908,
306,
5265,
6059,
14210,
3242,
29995,
465,
2879,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who had the statistic of most assists?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1156428_2 (
"Worcs f-c matches" numeric,
"Worcs LA matches" numeric,
"First-class span" text,
Location text,
"List A span" text,
"Name of ground" text
);
CREATE TABLE table_1_11803648_20 (
Position text,
"Club team" text,
Player text,
Overall text,
Nationality text,
Round numeric
);
CREATE TABLE table_1_1182314_5 (
"Norwegian Americans (2000)" numeric,
"Percent (2009)" text,
"Percent (2000)" text,
"Percent (1980)" text,
"Norwegian Americans (1990)" numeric,
"Norwegian Americans (1980)" numeric,
"Percent (1990)" text,
State text,
"Norwegian Americans (2009)" numeric
);
CREATE TABLE table_2_18127869_9 (
School text,
Stage text,
Total text,
Name text,
Opponent text,
Statistic text
);
CREATE TABLE table_1_11167610_1 (
Torque text,
Transmission text,
Turbo text,
"Fuel Delivery" text,
Engine text,
Power text,
Trim text,
Performance text
);
```
### Answer
Here is the SQL query that answers the question:
`Who had the statistic of most assists?`
```sql
| SELECT Name FROM table_2_18127869_9 WHERE "Statistic" ILIKE '%most%assists%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
14297,
310,
29871,
30659,
31641,
31052,
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,
29896,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29906,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
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,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29929,
29906,
29941,
29900,
29918,
29945,
313,
13,
12,
29908,
29934,
290,
1175,
29875,
3611,
29908,
1426,
29892,
13,
12,
7422,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
29892,
13,
12,
29949,
2200,
265,
16985,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29896,
29896,
29946,
29918,
29906,
313,
13,
12,
29908,
29963,
12184,
322,
1134,
29908,
1426,
29892,
13,
12,
1888,
14607,
1426,
29892,
13,
12,
23785,
1426,
29892,
13,
12,
1523,
1860,
1426,
29892,
13,
12,
29908,
6779,
17907,
10079,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29946,
29941,
29896,
29929,
29918,
29896,
313,
13,
12,
22606,
16985,
29892,
13,
12,
18420,
1171,
1426,
29892,
13,
12,
29908,
29928,
749,
29914,
21453,
29908,
1426,
29892,
13,
12,
29928,
28778,
1426,
29892,
13,
12,
17241,
6115,
1426,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
29911,
5271,
5079,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29929,
29946,
29941,
29946,
29946,
29946,
29918,
29896,
313,
13,
12,
23665,
2265,
1426,
29892,
13,
12,
29908,
29903,
9422,
5229,
29908,
16985,
29892,
13,
12,
7566,
1426,
29892,
13,
12,
29908,
29924,
295,
314,
457,
2793,
29898,
29885,
29887,
29914,
9415,
5513,
1426,
29892,
13,
12,
29908,
29903,
9422,
4586,
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,
338,
278,
14297,
310,
29871,
30659,
31641,
31052,
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,
7138,
2265,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29929,
29946,
29941,
29946,
29946,
29946,
29918,
29896,
5754,
376,
7566,
29908,
306,
5265,
6059,
14210,
30659,
31641,
31052,
234,
140,
143,
232,
175,
179,
232,
188,
191,
232,
136,
149,
31361,
30525,
231,
188,
182,
234,
181,
140,
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,
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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,
5097,
7138,
2265,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29929,
29946,
29941,
29946,
29946,
29946,
29918,
29896,
5754,
376,
7566,
29908,
306,
5265,
6059,
14210,
30659,
31641,
31052,
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:
`Who is the producer of 金必氏牌嬰幼兒配方乳粉 ?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11274401_2 (
"No." numeric,
Timeslot text,
Episode text,
Rating text,
"Air Date" text,
"Rank (#)" text,
"18–49 (Rating/Share)" text,
Share numeric,
"Viewers (m)" text
);
CREATE TABLE table_1_1213511_2 (
"Pick #" numeric,
Nationality text,
Player text,
"NHL team" text,
Position text,
"College/junior/club team" text
);
CREATE TABLE table_1_10979230_5 (
"Romaji title" text,
Reference text,
"Japanese title" text,
Oricon numeric,
"Release date" text
);
CREATE TABLE table_1_1206114_2 (
"Vendor and type" text,
Implementation text,
Models text,
Comments text,
"NetFlow Version" text
);
CREATE TABLE table_1_1014319_1 (
Week numeric,
Goodman text,
"Dance/song" text,
Dixon text,
Horwood text,
Total text,
Tonioli text,
Result text
);
CREATE TABLE table_1_18943444_1 (
Producer text,
"Samples failed" numeric,
Product text,
"Melamine content(mg/kg)" text,
"Samples taken" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the producer of 金必氏牌嬰幼兒配方乳粉 ?`
```sql
| SELECT Producer 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,
8809,
436,
4847,
756,
263,
3171,
310,
29871,
29953,
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,
29906,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29896,
29953,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
7011,
1426,
29892,
13,
12,
29908,
29940,
5688,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29900,
29953,
29945,
29953,
29918,
29896,
313,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29620,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29941,
29953,
29900,
29896,
29918,
29896,
313,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29941,
29918,
29906,
313,
13,
12,
29934,
299,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29896,
313,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
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,
29900,
29955,
29906,
29945,
29953,
29906,
29929,
29918,
29906,
313,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
16885,
29914,
6508,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
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,
4847,
756,
263,
3171,
310,
29871,
29953,
29899,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29896,
29953,
5754,
376,
7011,
29908,
306,
5265,
6059,
14210,
29953,
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,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29896,
29953,
5754,
376,
7011,
29908,
306,
5265,
6059,
14210,
29953,
29899,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which player has a height of 6-7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_11677760_16 (
Hometown text,
School text,
College text,
Player text,
Height text,
"NBA Draft" text
);
CREATE TABLE table_1_10360656_1 (
"Player name" text,
Overall numeric,
Position text,
Round numeric,
Choice numeric
);
CREATE TABLE table_1_1243601_1 (
"Regular Season" text,
League text,
Playoffs text,
Year text,
Division numeric,
"Open Cup" text
);
CREATE TABLE table_1_1140083_2 (
Rnd numeric,
Date text,
"Race Winner" text,
Location text,
"Pole Position" text,
Race text,
"Fastest Lap" text,
Report text,
Constructor text
);
CREATE TABLE table_1_11734041_11 (
"No.(s)" text,
"Years for Rockets" text,
"Height in Ft." text,
"School/Club Team/Country" text
);
CREATE TABLE table_1_10725629_2 (
"Race Name" text,
"City/Location" text,
"Winning team" text,
"Pole position" text,
"Fastest lap" text,
Circuit text,
"Winning driver" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which player has a height of 6-7?`
```sql
| SELECT Player FROM table_2_11677760_16 WHERE "Height" ILIKE '%6-7%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
6588,
1629,
363,
278,
1781,
2712,
10464,
3769,
29915,
29879,
2323,
376,
29880,
3714,
11379,
6568,
8652,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
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,
2499,
2404,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29955,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29947,
313,
13,
12,
29908,
29940,
15444,
3815,
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,
5618,
29915,
29879,
278,
6588,
1629,
363,
278,
1781,
2712,
10464,
3769,
29915,
29879,
2323,
376,
29880,
3714,
11379,
6568,
8652,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
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,
16773,
29995,
386,
886,
29995,
29882,
932,
8333,
29001,
5300,
376,
15771,
29908,
306,
5265,
6059,
14210,
29908,
29880,
3714,
29995,
29880,
3714,
29995,
8387,
29908,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16884,
29954,
29898,
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,
16773,
29995,
386,
886,
29995,
29882,
932,
8333,
29001,
5300,
376,
15771,
29908,
306,
5265,
6059,
14210,
29908,
29880,
3714,
29995,
29880,
3714,
29995,
8387,
29908,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the average year for the good things happening album's single "lady lady lay"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_16865180_1 (
Single text,
Month text,
"Record label" text,
Album text,
Year numeric
);
CREATE TABLE table_1_1213511_7 (
"College/junior/club team" text,
Position text,
Nationality text,
Player text,
"NHL team" text,
"Pick #" numeric
);
CREATE TABLE table_1_1013129_8 (
"NHL team" text,
Position text,
Pick numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What's the average year for the good things happening album's single "lady lady lay"?`
```sql
| SELECT AVG(YEAR) FROM table_2_16865180_1 WHERE "Album" ILIKE '%good%things%happening%' AND "Single" ILIKE '%"lady%lady%lay"%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3611,
310,
278,
12720,
20654,
491,
29871,
29900,
29889,
29947,
29947,
7284,
501,
29889,
29903,
29889,
1776,
414,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29955,
313,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29947,
29953,
29947,
29900,
29941,
29955,
29955,
29918,
29906,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29929,
29955,
29946,
29953,
29941,
29918,
29896,
313,
13,
12,
29908,
27933,
310,
24917,
267,
29871,
29896,
29929,
29945,
29896,
29908,
1426,
29892,
13,
12,
29908,
27933,
310,
24917,
267,
29871,
29896,
29929,
29929,
29896,
29908,
1426,
29892,
13,
12,
29908,
29963,
453,
482,
313,
29903,
417,
854,
713,
5513,
1426,
29892,
13,
12,
29908,
4557,
310,
2305,
29871,
29896,
29929,
29929,
29896,
29908,
16985,
29892,
13,
12,
29908,
29963,
453,
482,
313,
29954,
3504,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29945,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29896,
29955,
29918,
29945,
313,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29900,
29955,
29906,
29900,
29918,
29945,
313,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
29908,
29933,
23980,
22135,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3611,
310,
278,
12720,
20654,
491,
29871,
29900,
29889,
29947,
29947,
7284,
501,
29889,
29903,
29889,
1776,
414,
29973,
29952,
13,
28956,
2850,
13,
5097,
18527,
3895,
1591,
29918,
29896,
29918,
29906,
29947,
29953,
29947,
29900,
29941,
29955,
29955,
29918,
29906,
5754,
376,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
306,
5265,
6059,
14210,
29900,
29889,
29947,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29947,
29953,
29947,
29900,
29941,
29955,
29955,
29918,
29906,
5754,
376,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
306,
5265,
6059,
14210,
29900,
29889,
29947,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the title of the episode watched by 0.88 million U.S. viewers?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10470082_7 (
Storyteller text,
Writer text,
Director text,
Villains text,
"US air date" text,
"#" numeric,
"No." numeric
);
CREATE TABLE table_1_28680377_2 (
"Written by" text,
"Directed by" text,
"U.S. viewers (million)" text,
"Original air date" text,
Title text,
"No. in series" numeric
);
CREATE TABLE table_1_10797463_1 (
"Percent of Slovenes 1951" text,
"Percent of Slovenes 1991" text,
"Village (Slovenian)" text,
"Number of people 1991" numeric,
"Village (German)" text
);
CREATE TABLE table_1_11545282_5 (
"School/Club Team" text,
"Years for Jazz" text,
Nationality text,
Position text,
Player text
);
CREATE TABLE table_1_1140117_5 (
"Winning driver" text,
Date text,
Report text,
Constructor text,
Circuit text,
"Race Name" text
);
CREATE TABLE table_1_11950720_5 (
"First Class Team" text,
"Bowling Style" text,
"Date of Birth" text,
"Batting Style" text,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the title of the episode watched by 0.88 million U.S. viewers?`
```sql
| SELECT Title FROM table_1_28680377_2 WHERE "U.S. viewers (million)" ILIKE '%0.88%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
20627,
756,
263,
21595,
7200,
1135,
29871,
29955,
29892,
322,
263,
4408,
310,
982,
484,
408,
16344,
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,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29945,
29955,
313,
13,
12,
29934,
618,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
29925,
860,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29947,
29900,
29906,
29918,
29896,
313,
13,
12,
29908,
21472,
29892,
2125,
2696,
29908,
1426,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
29908,
19111,
3090,
914,
330,
799,
11959,
29908,
1426,
29892,
13,
12,
29908,
1523,
2590,
11959,
29908,
1426,
29892,
13,
12,
29908,
25375,
1662,
21700,
29908,
1426,
29892,
13,
12,
29908,
29928,
719,
7688,
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,
21472,
29892,
9126,
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,
278,
7861,
457,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29929,
29941,
29900,
29953,
29918,
29906,
313,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
29892,
13,
12,
4205,
29883,
16985,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
29908,
29934,
30099,
655,
2397,
3611,
29908,
1426,
29892,
13,
12,
29908,
17936,
931,
29908,
1426,
29892,
13,
12,
29908,
24636,
3611,
29908,
1426,
29892,
13,
12,
17936,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29946,
29946,
29955,
29953,
29918,
29947,
313,
13,
12,
1123,
3901,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
22676,
1426,
29892,
13,
12,
29928,
2829,
1308,
1426,
29892,
13,
12,
29924,
524,
482,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
6039,
3901,
1426,
29892,
13,
12,
2499,
2376,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29906,
29900,
29946,
29906,
29953,
29918,
29896,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
20627,
756,
263,
21595,
7200,
1135,
29871,
29955,
29892,
322,
263,
4408,
310,
982,
484,
408,
16344,
29973,
29952,
13,
28956,
2850,
13,
5097,
349,
3267,
22122,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29945,
29955,
5754,
376,
29934,
618,
29908,
1405,
525,
29955,
29915,
5300,
376,
1170,
29908,
306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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
349,
3267,
22122,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29945,
29955,
5754,
376,
29934,
618,
29908,
1405,
525,
29955,
29915,
5300,
376,
1170,
29908,
306,
5265,
6059,
14210,
1582,
484,
29995,
294,
16344,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Position has a Round larger than 7, and a Name of wayne asberry?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17100961_57 (
Round numeric,
Name text,
College text,
Position text,
Overall numeric,
Pick numeric
);
CREATE TABLE table_1_1123802_1 (
"Power, takeoff" text,
Engine text,
"Supercharger gear ratio" text,
"Compression ratio" text,
"Octane rating" text,
"Dry weight" 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,
"Power, continuous" text
);
CREATE TABLE table_1_11071897_1 (
"Interregnum began" text,
"Count Palatine of the Rhine" text,
"Count Palatine of Saxony" text,
Duration text,
"Interregnum ended" text
);
CREATE TABLE table_1_11839306_2 (
"Japanese title" text,
Disc numeric,
Artist text,
"Rōmaji title" text,
"Track time" text,
"English title" text,
Track numeric
);
CREATE TABLE table_1_12284476_8 (
Reverse text,
Year numeric,
Weight text,
Diameter text,
Mintage numeric,
Series text,
Obverse text,
Alloy text,
Denomination text
);
CREATE TABLE table_1_10420426_1 (
Wins numeric,
Season text,
"F/Laps" numeric,
Poles numeric,
Podiums numeric,
Points numeric,
Races numeric,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Position has a Round larger than 7, and a Name of wayne asberry?`
```sql
| SELECT POSITION FROM table_2_17100961_57 WHERE "Round" > '7' AND "Name" ILIKE '%wayne%asberry%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
4423,
363,
278,
2635,
29871,
29955,
29994,
29896,
29900,
4725,
4950,
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,
4597,
2132,
800,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29908,
22814,
9681,
29908,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2052,
492,
2925,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29953,
29947,
29953,
29929,
29900,
29947,
29918,
29906,
313,
13,
12,
23665,
428,
1426,
29892,
13,
12,
1451,
11768,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16885,
847,
4306,
29908,
1426,
29892,
13,
12,
1451,
3103,
3527,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29953,
29946,
29929,
29945,
29955,
29918,
29906,
313,
13,
12,
29908,
1184,
29890,
3097,
29871,
29906,
299,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
10769,
7348,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
10769,
7348,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29896,
303,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
310,
263,
4216,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29955,
29955,
29900,
29896,
29918,
29945,
313,
13,
12,
20001,
1426,
29892,
13,
12,
29908,
21472,
313,
567,
5513,
16985,
29892,
13,
12,
29908,
3195,
1024,
29908,
1426,
29892,
13,
12,
29908,
4205,
29886,
9552,
313,
4912,
30168,
5513,
16985,
29892,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
29992,
29878,
3358,
5513,
1426,
29892,
13,
12,
29908,
12412,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29906,
29929,
313,
13,
12,
4920,
1030,
14641,
1426,
29892,
13,
12,
29908,
4504,
1507,
1530,
2470,
29908,
1426,
29892,
13,
12,
2369,
1467,
358,
16985,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
12742,
29914,
8431,
20272,
29908,
1426,
29892,
13,
12,
29908,
797,
13888,
1951,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29900,
29953,
29945,
29918,
29906,
29947,
313,
13,
12,
29908,
8897,
8905,
29908,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
8514,
287,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
16382,
342,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29908,
3373,
29914,
6767,
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,
4423,
363,
278,
2635,
29871,
29955,
29994,
29896,
29900,
4725,
4950,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
16885,
847,
4306,
29908,
3895,
1591,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
16885,
847,
4306,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29953,
29947,
29953,
29929,
29900,
29947,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29955,
29994,
29896,
29900,
29995,
25375,
4950,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the location for the date 7–10 october?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11934032_1 (
Registrations text,
District text,
"Station Number" text,
Type text,
Location text,
Appliances text
);
CREATE TABLE table_1_26686908_2 (
Production text,
Challenge text,
Circuit text,
"Rd." text,
Date text,
"City / State" text,
Championship text
);
CREATE TABLE table_1_10664957_2 (
"Probability 2nd player wins" text,
"2nd players choice" text,
"1st players choice" text,
"Probability 1st player wins" text,
"Probability of a draw" text
);
CREATE TABLE table_1_1147701_5 (
Comment text,
"Power (ps)" numeric,
"Model name" text,
"Displacement (cm³)" numeric,
"Torque (Nm@rpm)" text,
"Engine code" text
);
CREATE TABLE table_1_11318462_29 (
Abbreviation text,
"School Colours" text,
Enrolment numeric,
School text,
Denomination text,
Founded numeric,
"Day/Boarding" text,
"In competition since" numeric
);
CREATE TABLE table_1_1161065_28 (
"Last Year" text,
Total numeric,
Hosted numeric,
Venue text,
Highest numeric,
Average numeric,
Lowest numeric,
"Up/Down" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the location for the date 7–10 october?`
```sql
| SELECT "City / State" FROM table_1_26686908_2 WHERE "Date" ILIKE '%7–10%October%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
5811,
4097,
29915,
8542,
2407,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29945,
29946,
29945,
29945,
29941,
29918,
29929,
313,
13,
12,
19409,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29908,
2008,
1658,
4451,
2763,
29908,
1426,
29892,
13,
12,
29908,
12596,
2459,
14164,
29908,
1426,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29906,
29941,
29896,
29946,
29918,
29945,
313,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29929,
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,
29929,
5513,
1426,
29892,
13,
12,
2792,
1426,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29896,
29929,
29947,
29900,
5513,
16985,
29892,
13,
12,
29908,
27933,
313,
29896,
29929,
29929,
29900,
5513,
1426,
29892,
13,
12,
29908,
27933,
313,
29896,
29929,
29947,
29900,
5513,
1426,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29896,
29929,
29929,
29900,
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,
5618,
338,
278,
5811,
4097,
29915,
8542,
2407,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
12596,
2459,
14164,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29945,
29946,
29945,
29945,
29941,
29918,
29929,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
4881,
4097,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
12596,
2459,
14164,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29945,
29946,
29945,
29945,
29941,
29918,
29929,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
4881,
4097,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Senators' division record?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_13054553_9 (
Team text,
School text,
"Season Outcome" text,
"Division Record" text,
"Overall Record" text
);
CREATE TABLE table_1_1182314_5 (
"Norwegian Americans (2009)" numeric,
"Norwegian Americans (2000)" numeric,
"Percent (2009)" text,
State text,
"Norwegian Americans (1980)" numeric,
"Percent (1990)" text,
"Percent (1980)" text,
"Percent (2000)" text,
"Norwegian Americans (1990)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Senators' division record?`
```sql
| SELECT "Division Record" FROM table_2_13054553_9 WHERE "Team" ILIKE '%senators%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
6474,
338,
278,
8973,
5982,
297,
16977,
1049,
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,
29945,
29929,
29953,
29953,
29929,
29918,
29953,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
2539,
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,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
29896,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
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,
29925,
860,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29955,
29945,
29947,
29906,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
29967,
566,
2710,
25488,
29908,
1426,
29892,
13,
12,
29908,
29967,
566,
479,
310,
2070,
403,
29908,
1426,
29892,
13,
12,
29908,
6508,
310,
8973,
29908,
1426,
29892,
13,
12,
29908,
29924,
4376,
284,
1907,
6766,
29908,
1426,
29892,
13,
12,
29928,
6801,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29896,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
29940,
5688,
360,
4154,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
12883,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29955,
29946,
29946,
29946,
29955,
29918,
29946,
313,
13,
12,
29908,
29923,
4387,
362,
6588,
313,
4591,
3786,
29871,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
29925,
18049,
950,
537,
29914,
4165,
21642,
5626,
29908,
1426,
29892,
13,
12,
29908,
29923,
4387,
362,
6588,
313,
18743,
3786,
29871,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
29923,
4387,
362,
6588,
313,
4591,
6339,
29871,
29906,
29900,
29896,
29896,
5513,
1426,
29892,
13,
12,
29908,
15666,
557,
3109,
787,
16187,
29908,
16985,
29892,
13,
12,
29908,
29995,
310,
8178,
6161,
800,
29908,
1426,
29892,
13,
12,
29908,
4035,
29885,
5367,
20410,
373,
931,
29908,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29906,
29941,
29896,
29941,
29918,
29946,
313,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29943,
1744,
1426,
29892,
13,
12,
29908,
3195,
1353,
29908,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
29908,
29931,
29906,
7090,
29908,
1426,
29892,
13,
12,
29908,
7439,
1353,
29898,
29879,
5513,
1426,
29892,
13,
12,
29911,
11191,
1426,
29892,
13,
12,
13072,
29873,
482,
1426,
29892,
13,
12,
29908,
29879,
10299,
1353,
29908,
1426,
29892,
13,
12,
29908,
6857,
1213,
1426,
29892,
13,
12,
29908,
19729,
8666,
313,
3148,
29928,
1723,
29908,
1426,
29892,
13,
12,
11373,
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,
6474,
338,
278,
8973,
5982,
297,
16977,
1049,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29928,
6801,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29955,
29945,
29947,
29906,
29953,
29906,
29918,
29896,
5754,
376,
6508,
310,
8973,
29908,
306,
5265,
6059,
14210,
29911,
324,
1049,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
29928,
6801,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29955,
29945,
29947,
29906,
29953,
29906,
29918,
29896,
5754,
376,
6508,
310,
8973,
29908,
306,
5265,
6059,
14210,
29911,
324,
1049,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What district is the court located in Tolland?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11959669_6 (
"Location Attendance" text,
"High assists" text,
Score text,
Team text,
Date text,
Game numeric,
"High points" text,
"High rebounds" text,
Record text
);
CREATE TABLE table_1_1013129_11 (
Nationality text,
Position text,
Player text,
"College/junior/club team" text,
"NHL team" text,
Pick numeric
);
CREATE TABLE table_1_26758262_1 (
"Judges residence" text,
"Judge of probate" text,
"Location of court" text,
"Municipalities served" text,
District numeric
);
CREATE TABLE table_1_11677760_1 (
College text,
Hometown text,
"NBA Draft" text,
School text,
Year text
);
CREATE TABLE table_1_12074447_4 (
"Evaluation average (From April 2009)" text,
"Punctuality/Attendance issues" text,
"Evaluation average (Before April 2009)" text,
"Evaluation average (From February 2011)" text,
"Peak lessons taught" numeric,
"% of negative evaluations" text,
"Submitting schedule on time" text,
"unnamed_0" text
);
CREATE TABLE table_1_11602313_4 (
"Release date" text,
FSB text,
"Model number" text,
Frequency text,
"L2 cache" text,
"Part number(s)" text,
TDP text,
Voltage text,
"sSpec number" text,
"Mult." text,
"Release price ( USD )" text,
Socket text
);
```
### Answer
Here is the SQL query that answers the question:
`What district is the court located in Tolland?`
```sql
| SELECT MAX(District) FROM table_1_26758262_1 WHERE "Location of court" ILIKE '%Tolland%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
8090,
1258,
432,
1648,
29872,
380,
23195,
1708,
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,
29941,
29929,
29953,
29953,
29918,
29896,
313,
13,
12,
29908,
8120,
1338,
363,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29925,
312,
1273,
29908,
1426,
29892,
13,
12,
11042,
292,
1426,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
29956,
265,
16985,
29892,
13,
12,
29908,
8120,
1338,
2750,
29908,
16985,
29892,
13,
12,
29911,
1000,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29955,
29946,
29945,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
12883,
518,
29872,
4514,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29929,
29946,
29906,
29955,
29918,
29941,
313,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29909,
381,
1256,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29946,
29953,
29941,
29900,
29941,
29918,
29946,
313,
13,
12,
7789,
1338,
16985,
29892,
13,
12,
29908,
3073,
2921,
1338,
29908,
16985,
29892,
13,
12,
8140,
2667,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
7445,
29879,
16985,
29892,
13,
12,
29908,
29954,
1280,
7412,
287,
29908,
16985,
29892,
13,
12,
29908,
20475,
498,
5727,
29908,
16985,
29892,
13,
12,
29934,
774,
3885,
16985,
29892,
13,
12,
7900,
2879,
16985,
29892,
13,
12,
29908,
28575,
3929,
1639,
29879,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29941,
29941,
29947,
29955,
29918,
29896,
313,
13,
12,
29908,
10873,
793,
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,
29928,
283,
7586,
399,
29899,
29931,
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,
8090,
1258,
432,
1648,
29872,
380,
23195,
1708,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
29954,
1280,
7412,
287,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29946,
29953,
29941,
29900,
29941,
29918,
29946,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29967,
1648,
29872,
29995,
20754,
10794,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29954,
1280,
7412,
287,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29941,
29946,
29953,
29941,
29900,
29941,
29918,
29946,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29967,
1648,
29872,
29995,
20754,
10794,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many games did janae stokes play?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1143966_1 (
"Goals for" numeric,
Season text,
"Pct %" text,
Standing text,
Games numeric,
Lost numeric,
Won numeric,
"Goals against" numeric,
Tied numeric
);
CREATE TABLE table_1_10874596_1 (
"Year [e ] (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
Director text,
Result text
);
CREATE TABLE table_1_10269427_3 (
"Episode #" numeric,
"Production code" numeric,
Airdate text,
"Directed by" text,
Title text,
"Written by" text
);
CREATE TABLE table_1_23346303_4 (
Steals numeric,
"Field Goals" numeric,
Minutes numeric,
Player text,
Points numeric,
Blocks numeric,
"Games Played" numeric,
"Free Throws" numeric,
Rebounds numeric,
Assists numeric,
"Three Pointers" numeric
);
CREATE TABLE table_1_10023387_1 (
"Singles W-L" text,
"Total W-L" text,
"Years Played" text,
"Doubles W-L" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many games did janae stokes play?`
```sql
| SELECT MAX("Games Played") FROM table_1_23346303_4 WHERE "Player" ILIKE '%Janae%Stokes%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
8583,
29871,
29896,
756,
263,
29871,
29906,
299,
2814,
310,
29871,
29896,
29994,
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,
29906,
29900,
29929,
29945,
29945,
29896,
29929,
29918,
29896,
313,
13,
12,
29908,
5323,
262,
1939,
1213,
1426,
29892,
13,
12,
29908,
5323,
262,
4408,
29908,
1426,
29892,
13,
12,
14994,
3381,
1426,
29892,
13,
12,
23182,
1426,
29892,
13,
12,
23923,
23860,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29945,
29906,
29947,
29947,
29918,
29906,
313,
13,
12,
29908,
19409,
29871,
29896,
29908,
1426,
29892,
13,
12,
29908,
29909,
1505,
1213,
1426,
29892,
13,
12,
29908,
29896,
303,
2814,
29908,
1426,
29892,
13,
12,
29908,
19409,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
2814,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29896,
29946,
29955,
29955,
29906,
29918,
29896,
313,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29906,
29908,
1426,
29892,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29896,
29908,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29953,
29953,
29929,
29906,
29953,
29918,
29906,
313,
13,
12,
29620,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
22676,
16985,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
7011,
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,
8583,
29871,
29896,
756,
263,
29871,
29906,
299,
2814,
310,
29871,
29896,
29994,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
19409,
29871,
29896,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29945,
29906,
29947,
29947,
29918,
29906,
5754,
376,
29906,
299,
2814,
29908,
306,
5265,
6059,
14210,
29896,
29994,
29906,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
19409,
29871,
29896,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29945,
29906,
29947,
29947,
29918,
29906,
5754,
376,
29906,
299,
2814,
29908,
306,
5265,
6059,
14210,
29896,
29994,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Team 1 has a 2nd leg of 1–2?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12095519_1 (
"Train No." text,
"Train Name" text,
Destination text,
Origin text,
Frequency text
);
CREATE TABLE table_2_17065288_2 (
"Team 1" text,
"Agg." text,
"1st leg" text,
"Team 2" text,
"2nd leg" text
);
CREATE TABLE table_1_11214772_1 (
Champion text,
"Semi-Finalist #2" text,
"Semi-Finalist #1" text,
Year text,
"Runner-Up" text,
Score text,
Location text
);
CREATE TABLE table_1_10966926_2 (
Choice numeric,
College text,
Weight numeric,
Round numeric,
Position text,
"Player name" text,
Height text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Team 1 has a 2nd leg of 1–2?`
```sql
| SELECT "Team 1" FROM table_2_17065288_2 WHERE "2nd leg" ILIKE '%1–2%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
1121,
373,
5533,
29871,
29946,
29892,
29871,
29896,
29929,
29929,
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,
29896,
29906,
29947,
29896,
29947,
29945,
29918,
29906,
313,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
29903,
283,
5063,
5408,
29908,
16985,
29892,
13,
12,
29908,
29940,
272,
5063,
5408,
29908,
16985,
29892,
13,
12,
29903,
549,
1426,
29892,
13,
12,
4421,
327,
1049,
16985,
29892,
13,
12,
29924,
711,
5475,
16985,
29892,
13,
12,
29908,
29940,
272,
5063,
12126,
29908,
16985,
29892,
13,
12,
29956,
2122,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29955,
313,
13,
12,
29963,
2911,
1144,
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,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29359,
29873,
4539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29900,
29955,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
17734,
1076,
1281,
18769,
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,
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,
29896,
29918,
29896,
29896,
29941,
29955,
29953,
29929,
29945,
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,
17734,
1076,
1281,
18769,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29896,
29900,
29900,
29929,
29929,
29918,
29896,
313,
13,
12,
3591,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
4165,
21642,
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,
5618,
471,
278,
1121,
373,
5533,
29871,
29946,
29892,
29871,
29896,
29929,
29929,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29896,
29900,
29900,
29929,
29929,
29918,
29896,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
20082,
4950,
29995,
29946,
24163,
29896,
29929,
29929,
29941,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29896,
29900,
29900,
29929,
29929,
29918,
29896,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
20082,
4950,
29995,
29946,
24163,
29896,
29929,
29929,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the result on October 4, 1993?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10128185_2 (
Total numeric,
"Southern England" numeric,
"Northern England" numeric,
Song text,
Scotland numeric,
Mobiles numeric,
"Northern Ireland" numeric,
Wales numeric
);
CREATE TABLE table_1_10470082_7 (
Villains text,
"US air date" text,
Director text,
"No." numeric,
Writer text,
"#" numeric,
Title text,
Storyteller text
);
CREATE TABLE table_1_1137707_2 (
Report text,
"Winning Driver" text,
"Pole Position" text,
Round numeric,
"Fastest Lap" text,
"Grand Prix" text,
Location text,
"Winning Constructor" text
);
CREATE TABLE table_1_11622255_1 (
Score text,
Tournament text,
"Purse( $ )" numeric,
"1st Prize( $ )" numeric,
Winner text
);
CREATE TABLE table_1_1137695_3 (
"Grand Prix" text,
"Fastest Lap" text,
"Winning Constructor" text
);
CREATE TABLE table_2_14610099_1 (
Result text,
Week numeric,
Date text,
Attendance text,
Opponent text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the result on October 4, 1993?`
```sql
| SELECT RESULT FROM table_2_14610099_1 WHERE "Date" ILIKE '%october%4,%1993%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2533,
310,
22125,
29892,
746,
14165,
911,
338,
3109,
1135,
29871,
29896,
29892,
746,
22900,
338,
28806,
313,
29903,
3120,
511,
322,
746,
14990,
338,
3109,
1135,
29871,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29945,
29955,
29946,
29946,
29946,
29955,
29918,
29953,
313,
13,
12,
29934,
804,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29933,
1617,
911,
16985,
29892,
13,
12,
26729,
369,
16985,
29892,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
29940,
362,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29906,
29900,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29906,
29941,
29896,
29946,
29918,
29945,
313,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29900,
5513,
16985,
29892,
13,
12,
2792,
1426,
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,
27933,
313,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29900,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29955,
29945,
29929,
29896,
29945,
29918,
29906,
313,
13,
12,
29908,
23799,
29906,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
23799,
29896,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
12191,
1426,
29892,
13,
12,
29908,
23799,
29941,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
29956,
7187,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29953,
29945,
29946,
29955,
29918,
29896,
313,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
29924,
1175,
272,
11395,
29898,
29879,
5513,
1426,
29892,
13,
12,
17936,
1426,
29892,
13,
12,
29908,
2499,
2404,
1024,
29908,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29945,
29947,
29947,
29918,
29941,
313,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
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,
5618,
338,
278,
2533,
310,
22125,
29892,
746,
14165,
911,
338,
3109,
1135,
29871,
29896,
29892,
746,
22900,
338,
28806,
313,
29903,
3120,
511,
322,
746,
14990,
338,
3109,
1135,
29871,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
29934,
804,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29945,
29955,
29946,
29946,
29946,
29955,
29918,
29953,
5754,
376,
29933,
1617,
911,
29908,
529,
525,
29896,
29915,
5300,
376,
29940,
362,
29908,
306,
5265,
6059,
14210,
2774,
27198,
29995,
29898,
29879,
1481,
29897,
29001,
5300,
376,
11536,
29908,
529,
525,
29906,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29934,
804,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29945,
29955,
29946,
29946,
29946,
29955,
29918,
29953,
5754,
376,
29933,
1617,
911,
29908,
529,
525,
29896,
29915,
5300,
376,
29940,
362,
29908,
306,
5265,
6059,
14210,
2774,
27198,
29995,
29898,
29879,
1481,
29897,
29001,
5300,
376,
11536,
29908,
529,
525,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_16574447_6 (
Rank numeric,
Total numeric,
Bronze numeric,
Silver numeric,
Gold numeric,
Nation text
);
CREATE TABLE table_1_11734041_20 (
Player text,
"School/Club Team/Country" text,
"Years for Rockets" text,
Position text,
"Height in Ft." text,
"No.(s)" text
);
CREATE TABLE table_1_1182314_5 (
"Norwegian Americans (2000)" numeric,
State text,
"Percent (1990)" text,
"Norwegian Americans (1990)" numeric,
"Percent (2009)" text,
"Percent (2000)" text,
"Percent (1980)" text,
"Norwegian Americans (1980)" numeric,
"Norwegian Americans (2009)" numeric
);
CREATE TABLE table_1_11875915_2 (
"GT2 Winning Team" text,
Rnd numeric,
"GT1 Winning Team" text,
Results text,
"GT3 Winning Team" text,
"WSC Winning Team" text,
Circuit text
);
CREATE TABLE table_1_10416547_1 (
"Music genre/style" text,
Date text,
Lyricist text,
"Track title" text,
Duration text,
"Major instrument(s)" text,
Track text,
"Album name" text,
"Lyrics theme/style" text
);
CREATE TABLE table_1_1132588_3 (
"Winning Driver" text,
"Rd." numeric,
"Fastest Lap" text,
Report text,
Constructor text,
"Pole Position" text,
"Grand Prix" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2?`
```sql
| SELECT SUM(Rank) FROM table_2_16574447_6 WHERE "Bronze" < '1' AND "Nation" ILIKE '%switzerland%(sui)%' AND "Total" < '2' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
3815,
756,
263,
1629,
9904,
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,
29896,
29929,
29945,
29900,
29955,
29906,
29900,
29918,
29941,
313,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29933,
23980,
22135,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29896,
29896,
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,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29945,
29947,
29955,
29906,
29945,
29906,
29918,
29896,
313,
13,
12,
29908,
6843,
300,
654,
1919,
12067,
362,
1919,
470,
13225,
29908,
1426,
29892,
13,
12,
29903,
637,
1028,
1330,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29903,
637,
1426,
29892,
13,
12,
29908,
29940,
362,
310,
12060,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29906,
29896,
29947,
29929,
29918,
29896,
313,
13,
12,
12415,
5946,
1426,
29892,
13,
12,
29908,
21472,
29914,
29878,
3358,
29908,
1426,
29892,
13,
12,
29908,
3195,
29914,
12412,
29908,
1426,
29892,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
6802,
29878,
3358,
29908,
1426,
29892,
13,
12,
29908,
29907,
2904,
513,
414,
29914,
1440,
1960,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29946,
29953,
29906,
29945,
29918,
29906,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29941,
29945,
29929,
29955,
29918,
29946,
313,
13,
12,
29020,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
3815,
756,
263,
1629,
9904,
310,
29871,
29906,
29900,
29900,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
8583,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29945,
29947,
29955,
29906,
29945,
29906,
29918,
29896,
5754,
376,
12883,
29908,
353,
525,
29906,
29900,
29900,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
8583,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29945,
29947,
29955,
29906,
29945,
29906,
29918,
29896,
5754,
376,
12883,
29908,
353,
525,
29906,
29900,
29900,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What team has a year listed of 2008?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11950720_3 (
"Bowling Style" text,
Player text,
"Batting Style" text,
"No." text,
"First Class Team" text,
"Date of Birth" text
);
CREATE TABLE table_1_11960944_11 (
"Location Attendance" text,
"High rebounds" text,
Date text,
"High points" text,
"High assists" text,
Game numeric,
Series text,
Score text
);
CREATE TABLE table_2_10587252_1 (
"Competition , federation , or league" text,
Sportsperson text,
Team text,
Year numeric,
Sport text,
"Nation of birth" text
);
CREATE TABLE table_1_1212189_1 (
Capacity text,
"Power/rpm" text,
"Model/Engine" text,
"Torque (Nm)/rpm" text,
"Cylinders/Valves" text
);
CREATE TABLE table_1_11664625_2 (
"Original air date" text,
"Directed by" text,
"No. in season" numeric,
"Written by" text,
"No. in series" numeric,
"U.S. viewers (millions)" text,
Title text
);
CREATE TABLE table_1_10413597_4 (
Setting text,
"No. in season" numeric,
"Written by" text
);
```
### Answer
Here is the SQL query that answers the question:
`What team has a year listed of 2008?`
```sql
| SELECT Team FROM table_2_10587252_1 WHERE "Year" = '2008' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
6588,
5846,
29892,
746,
8448,
338,
376,
29941,
29953,
8652,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29946,
29947,
29929,
29941,
29918,
29946,
313,
13,
12,
9182,
1426,
29892,
13,
12,
6185,
1096,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29946,
29947,
29906,
29896,
29918,
29906,
313,
13,
12,
29908,
20325,
15074,
313,
29903,
271,
20911,
5513,
16985,
29892,
13,
12,
29908,
20325,
15074,
313,
3247,
21203,
398,
5513,
16985,
29892,
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,
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,
5846,
29892,
746,
8448,
338,
376,
29941,
29953,
8652,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
6185,
1096,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29946,
29947,
29929,
29941,
29918,
29946,
5754,
376,
14199,
29908,
353,
525,
29941,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16884,
29954,
29898,
6185,
1096,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29946,
29947,
29929,
29941,
29918,
29946,
5754,
376,
14199,
29908,
353,
525,
29941,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the average December, when Game is "36"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17324893_4 (
Record text,
December numeric,
Opponent text,
Game numeric,
Score text
);
CREATE TABLE table_1_11254821_2 (
"Points awarded (Satellite)" numeric,
"Points awarded (Platinum)" numeric,
"Points awarded (Gold)" numeric,
"Finishing position" text,
"Points awarded (Silver)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the average December, when Game is "36"?`
```sql
| SELECT AVG(December) FROM table_2_17324893_4 WHERE "Game" = '36' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
29871,
29906,
29900,
29896,
29896,
411,
29871,
29906,
29900,
29896,
29900,
310,
29871,
29896,
29878,
322,
29871,
29906,
29900,
29896,
29906,
310,
18668,
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,
29929,
29896,
29947,
29946,
29896,
29918,
29906,
313,
13,
12,
29908,
4300,
571,
27684,
29908,
1426,
29892,
13,
12,
29908,
29924,
21081,
515,
29908,
1426,
29892,
13,
12,
22406,
16985,
29892,
13,
12,
29908,
4300,
571,
3474,
29908,
1426,
29892,
13,
12,
29923,
29965,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29925,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29940,
16985,
29892,
13,
12,
5044,
29879,
16985,
29892,
13,
12,
4435,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29947,
29896,
29955,
29947,
29906,
29918,
29953,
313,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29896,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29947,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29953,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29941,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29906,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29896,
29906,
29941,
29900,
29918,
29896,
313,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29947,
29929,
29906,
29918,
29946,
313,
13,
12,
29908,
29963,
2911,
262,
29914,
29879,
29908,
1426,
29892,
13,
12,
29908,
4557,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29933,
9972,
4384,
8170,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
5593,
4712,
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,
411,
29871,
29906,
29900,
29896,
29900,
310,
29871,
29896,
29878,
322,
29871,
29906,
29900,
29896,
29906,
310,
18668,
29952,
13,
28956,
2850,
13,
5097,
29871,
29906,
29900,
29896,
29896,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29947,
29896,
29955,
29947,
29906,
29918,
29953,
5754,
376,
29906,
29900,
29896,
29900,
29908,
306,
5265,
6059,
14210,
29896,
29878,
29001,
5300,
376,
29906,
29900,
29896,
29906,
29908,
306,
5265,
6059,
14210,
4668,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29945,
29900,
29947,
29896,
29955,
29947,
29906,
29918,
29953,
5754,
376,
29906,
29900,
29896,
29900,
29908,
306,
5265,
6059,
14210,
29896,
29878,
29001,
5300,
376,
29906,
29900,
29896,
29906,
29908,
306,
5265,
6059,
14210,
4668,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the 2011 with 2010 of 1r and 2012 of sf`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11891841_2 (
"Transfer fee" text,
"Moving from" text,
Age numeric,
"Transfer window" text,
EU text,
Name text,
P text,
Type text,
N numeric,
Ends numeric,
Source text,
Country text
);
CREATE TABLE table_2_15081782_6 (
"2009" text,
"2011" text,
"2008" text,
Tournament text,
"2006" text,
"2013" text,
"2012" text,
"2010" text
);
CREATE TABLE table_1_10361230_1 (
"Player name" text,
Round numeric,
Choice numeric,
Overall numeric,
College text,
Position text
);
CREATE TABLE table_1_1231892_4 (
"Villain/s" text,
"Number in series" numeric,
"Broadcast Order" text,
Title text,
"Production Code" text,
"U.S. Air Date" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the 2011 with 2010 of 1r and 2012 of sf`
```sql
| SELECT 2011 FROM table_2_15081782_6 WHERE "2010" ILIKE '%1r%' AND "2012" ILIKE '%sf%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3402,
310,
16653,
1353,
29871,
29947,
29947,
29953,
29929,
29955,
29941,
29906,
29955,
29941,
29929,
29896,
29941,
313,
23034,
340,
29900,
29896,
29906,
29897,
297,
278,
3303,
12626,
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,
29906,
29953,
29947,
29947,
29945,
29906,
29918,
29946,
313,
13,
12,
4775,
1426,
29892,
13,
12,
29908,
29907,
3968,
434,
396,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
5809,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29947,
313,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29900,
29941,
29953,
29946,
29918,
29906,
313,
13,
12,
29908,
29954,
798,
386,
313,
29896,
29929,
29929,
29896,
29994,
29906,
29900,
29900,
29896,
5513,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
7827,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
29878,
3631,
5513,
16985,
29892,
13,
12,
29908,
5531,
27577,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
9662,
335,
2738,
2318,
29908,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
25006,
5513,
16985,
29892,
13,
12,
29908,
24938,
4135,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
12310,
2785,
1273,
29908,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
5145,
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,
5618,
338,
278,
3402,
310,
16653,
1353,
29871,
29947,
29947,
29953,
29929,
29955,
29941,
29906,
29955,
29941,
29929,
29896,
29941,
313,
23034,
340,
29900,
29896,
29906,
29897,
297,
278,
3303,
12626,
29973,
29952,
13,
28956,
2850,
13,
5097,
19191,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29953,
29947,
29947,
29945,
29906,
29918,
29946,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
9292,
3129,
29001,
5300,
376,
29907,
3968,
434,
396,
29908,
306,
5265,
6059,
14210,
29947,
29947,
29953,
29929,
29955,
29941,
29906,
29955,
29941,
29929,
29896,
29941,
29995,
29898,
23034,
340,
29900,
29896,
29906,
29897,
29001,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
19191,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29953,
29947,
29947,
29945,
29906,
29918,
29946,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
9292,
3129,
29001,
5300,
376,
29907,
3968,
434,
396,
29908,
306,
5265,
6059,
14210,
29947,
29947,
29953,
29929,
29955,
29941,
29906,
29955,
29941,
29929,
29896,
29941,
29995,
29898,
23034,
340,
29900,
29896,
29906,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18268852_4 (
Label text,
"Catalogue #" text,
Date text,
Country text,
Format text
);
CREATE TABLE table_1_10470082_8 (
Storyteller text,
Title text,
Writer text,
"US air date" text,
"#" numeric,
"No." numeric,
Director text,
Villains text
);
CREATE TABLE table_1_10710364_2 (
"Growth (1991–2001)" text,
"Sex ratio (total)" numeric,
"Sex ratio (rural)" numeric,
"Work participation (%)" text,
"Religious group" text,
"Sex ratio (urban)" numeric,
"Literacy (%)" text,
"Population %" text,
"Sex ratio (child)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?`
```sql
| SELECT Format FROM table_2_18268852_4 WHERE "Country" ILIKE '%united%kingdom%' AND "Catalogue #" ILIKE '%886973273913%(gowow012)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
8271,
1629,
411,
19061,
719,
5018,
299,
3391,
408,
29871,
29906,
299,
4509,
322,
281,
13794,
289,
442,
28497,
327,
408,
29871,
29896,
303,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29946,
29945,
29900,
29941,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
19576,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
28877,
29899,
786,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29906,
29945,
29945,
29918,
29896,
313,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29953,
29896,
29953,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
29896,
303,
19495,
29908,
1426,
29892,
13,
12,
29923,
1464,
1426,
29892,
13,
12,
29908,
29896,
303,
9173,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
9173,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
19495,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29953,
29896,
29953,
29906,
29918,
29941,
313,
13,
12,
29908,
3317,
29889,
4842,
802,
313,
29940,
29885,
29897,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
29908,
10599,
775,
29908,
1426,
29892,
13,
12,
4299,
1426,
29892,
13,
12,
29908,
1270,
29880,
513,
414,
29914,
659,
1960,
29908,
1426,
29892,
13,
12,
29908,
24601,
3785,
29908,
1426,
29892,
13,
12,
29908,
2218,
29886,
9552,
21759,
29908,
16985,
29892,
13,
12,
29908,
3317,
29889,
3081,
26226,
313,
7024,
29897,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
29908,
3332,
6210,
313,
8848,
29914,
29882,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29955,
29945,
29955,
29946,
29955,
29918,
29946,
313,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
338,
278,
8271,
1629,
411,
19061,
719,
5018,
299,
3391,
408,
29871,
29906,
299,
4509,
322,
281,
13794,
289,
442,
28497,
327,
408,
29871,
29896,
303,
29973,
29952,
13,
28956,
2850,
13,
5097,
382,
1464,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29953,
29896,
29953,
29896,
29941,
29918,
29896,
5754,
376,
29906,
299,
19495,
29908,
306,
5265,
6059,
14210,
3169,
719,
29995,
12822,
299,
3391,
29001,
5300,
376,
29896,
303,
19495,
29908,
306,
5265,
6059,
14210,
29893,
13794,
29995,
29890,
442,
28497,
327,
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,
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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,
5097,
382,
1464,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29953,
29896,
29953,
29896,
29941,
29918,
29896,
5754,
376,
29906,
299,
19495,
29908,
306,
5265,
6059,
14210,
3169,
719,
29995,
12822,
299,
3391,
29001,
5300,
376,
29896,
303,
19495,
29908,
306,
5265,
6059,
14210,
29893,
13794,
29995,
29890,
442,
28497,
327,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the election year with henry wyndham as 2nd member and walter barttelot as 1st?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12444503_1 (
Season text,
"lost to eventual winner" text,
Winner text,
"lost to eventual runner-up" text,
Score text,
"Runner-up" text
);
CREATE TABLE table_1_11622255_1 (
Date text,
Score text,
Tournament text,
"1st Prize( $ )" numeric,
Location text,
"Purse( $ )" numeric
);
CREATE TABLE table_2_12261613_1 (
"1st Member" text,
Election text,
"1st Party" text,
"2nd Party" text,
"2nd Member" text
);
CREATE TABLE table_1_1176162_3 (
"max. torque (Nm) at rpm" text,
"engine code" text,
model text,
"cylinders/ valves" text,
"production period" text,
"displacement cc" numeric,
"max. power kW (PS) at rpm" text,
"top speed (km/h)" numeric
);
CREATE TABLE table_1_11075747_4 (
"Series #" numeric,
"Written by" text,
"Episode #" numeric,
"Original air date" text,
Title text,
"Directed by" text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the election year with henry wyndham as 2nd member and walter barttelot as 1st?`
```sql
| SELECT Election FROM table_2_12261613_1 WHERE "2nd Member" ILIKE '%henry%wyndham%' AND "1st Member" ILIKE '%walter%barttelot%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
23857,
505,
263,
22125,
7200,
1135,
29871,
29906,
29892,
322,
399,
1144,
310,
29871,
29906,
29892,
322,
263,
15456,
310,
2524,
346,
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,
29896,
29929,
29906,
29896,
29906,
29918,
29941,
313,
13,
12,
20779,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
12883,
29879,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29934,
804,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
5098,
29931,
8583,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
3563,
497,
23868,
396,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
23857,
505,
263,
22125,
7200,
1135,
29871,
29906,
29892,
322,
399,
1144,
310,
29871,
29906,
29892,
322,
263,
15456,
310,
2524,
346,
29973,
29952,
13,
28956,
2850,
13,
5097,
23857,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29929,
29906,
29896,
29906,
29918,
29941,
5754,
376,
29934,
804,
29908,
1405,
525,
29906,
29915,
5300,
376,
29956,
1144,
29908,
353,
525,
29906,
29915,
5300,
376,
20779,
29908,
306,
5265,
6059,
14210,
29888,
11115,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
23857,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29929,
29906,
29896,
29906,
29918,
29941,
5754,
376,
29934,
804,
29908,
1405,
525,
29906,
29915,
5300,
376,
29956,
1144,
29908,
353,
525,
29906,
29915,
5300,
376,
20779,
29908,
306,
5265,
6059,
14210,
29888,
11115,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Years have a Rank larger than 2, and Wins of 2, and a Country of france?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1719212_3 (
Country text,
Name text,
Years text,
Wins numeric,
Rank numeric
);
CREATE TABLE table_1_12165999_1 (
Player text,
"AFL Team" text,
College text,
Position text,
"Overall Pick #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which Years have a Rank larger than 2, and Wins of 2, and a Country of france?`
```sql
| SELECT Years FROM table_2_1719212_3 WHERE "Rank" > '2' AND "Wins" = '2' AND "Country" ILIKE '%france%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
23868,
396,
411,
21488,
4271,
17229,
1089,
322,
3109,
1135,
29871,
29906,
29900,
2169,
28258,
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,
29941,
29900,
29900,
29953,
29918,
29896,
313,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
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,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19204,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29906,
29900,
29955,
29929,
29929,
29918,
29906,
313,
13,
12,
1252,
2356,
1426,
29892,
13,
12,
12881,
728,
1426,
29892,
13,
12,
29908,
6730,
4799,
2635,
29908,
1426,
29892,
13,
12,
1888,
29885,
6997,
1426,
29892,
13,
12,
29908,
29923,
12907,
11810,
793,
29908,
1426,
29892,
13,
12,
29934,
809,
538,
1426,
29892,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
29963,
866,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29929,
29941,
29906,
29906,
29896,
29918,
29946,
313,
13,
12,
29968,
24455,
1426,
29892,
13,
12,
29956,
7261,
1426,
29892,
13,
12,
5261,
3825,
1426,
29892,
13,
12,
8325,
1426,
29892,
13,
12,
1523,
2037,
1426,
29892,
13,
12,
18552,
292,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29953,
29929,
29945,
29945,
29918,
29941,
29947,
313,
13,
12,
29908,
19409,
313,
3226,
3437,
5513,
1426,
29892,
13,
12,
29908,
4597,
28258,
29908,
16985,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
29908,
29934,
29881,
396,
29908,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3247,
28258,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
23868,
396,
411,
21488,
4271,
17229,
1089,
322,
3109,
1135,
29871,
29906,
29900,
2169,
28258,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
29925,
860,
396,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29941,
29953,
29929,
29945,
29945,
29918,
29941,
29947,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29885,
436,
4271,
29995,
3874,
29890,
1089,
29001,
5300,
376,
4597,
28258,
29908,
529,
525,
29906,
29900,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29918,
29896,
29896,
29953,
29941,
29953,
29929,
29945,
29945,
29918,
29941,
29947,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29885,
436,
4271,
29995,
3874,
29890,
1089,
29001,
5300,
376,
4597,
28258,
29908,
529,
525,
29906,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the lowest Pick # with michael grabner and less than 20 Reg GP?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11603006_1 (
"Purse( $ )" numeric,
Winner text,
Tournament text,
Date text,
Location text,
Score text,
"1st Prize( $ )" numeric
);
CREATE TABLE table_1_11964263_13 (
"High rebounds" text,
"High assists" text,
Team text,
Game numeric,
"High points" text,
"Location Attendance" text,
Series text
);
CREATE TABLE table_1_11220799_2 (
Exiled text,
Finish text,
"First air date" text,
Immunity text,
"Episode Titles" text,
Reward text,
Eliminated text,
Vote text
);
CREATE TABLE table_1_11793221_4 (
Killed text,
Wounded text,
Commander text,
Unit text,
Complement text,
Missing text
);
CREATE TABLE table_2_11636955_38 (
"Team (League)" text,
"Reg GP" numeric,
"Pick #" numeric,
"Rd #" numeric,
Player text,
"Pl GP" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the lowest Pick # with michael grabner and less than 20 Reg GP?`
```sql
| SELECT MIN("Pick #") FROM table_2_11636955_38 WHERE "Player" ILIKE '%michael%grabner%' AND "Reg GP" < '20' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
432,
8715,
14436,
262,
29915,
29879,
9939,
5839,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29896,
29896,
29941,
29945,
29918,
29941,
313,
13,
12,
8498,
442,
545,
1426,
29892,
13,
12,
29908,
5594,
292,
472,
29908,
1426,
29892,
13,
12,
26486,
1426,
29892,
13,
12,
1433,
15081,
1426,
29892,
13,
12,
29908,
8120,
292,
304,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29906,
29900,
29955,
29929,
29929,
29918,
29906,
313,
13,
12,
29908,
29923,
12907,
11810,
793,
29908,
1426,
29892,
13,
12,
29934,
809,
538,
1426,
29892,
13,
12,
1252,
2356,
1426,
29892,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
29963,
866,
1426,
29892,
13,
12,
12881,
728,
1426,
29892,
13,
12,
1888,
29885,
6997,
1426,
29892,
13,
12,
29908,
6730,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29900,
29945,
29900,
29953,
29900,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
19204,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29953,
29945,
29945,
29945,
29906,
29918,
29906,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
29940,
10536,
5977,
29908,
1426,
29892,
13,
12,
8003,
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,
432,
8715,
14436,
262,
29915,
29879,
9939,
5839,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29925,
860,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29953,
29945,
29945,
29945,
29906,
29918,
29906,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29926,
8715,
29995,
28402,
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,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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,
5097,
18134,
29898,
29925,
860,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29953,
29945,
29945,
29945,
29906,
29918,
29906,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29926,
8715,
29995,
28402,
262,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is jamar martin's highest pick?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12221135_3 (
Departure text,
"Calling at" text,
Operator text,
Arrival text,
"Going to" text
);
CREATE TABLE table_1_11220799_2 (
"Episode Titles" text,
Reward text,
Exiled text,
Eliminated text,
Vote text,
Finish text,
Immunity text,
"First air date" text
);
CREATE TABLE table_1_10705060_1 (
Season text,
"Team Name" text,
Poles numeric,
Wins numeric,
Points numeric,
Races numeric,
Series text
);
CREATE TABLE table_2_18965552_2 (
Player text,
Pick numeric,
"NFL Club" text,
Position text,
Round numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is jamar martin's highest pick?`
```sql
| SELECT MAX(Pick) FROM table_2_18965552_2 WHERE "Player" ILIKE '%jamar%martin%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1361,
8372,
1788,
338,
1304,
411,
263,
10489,
282,
391,
265,
844,
1743,
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,
29946,
29900,
29896,
29918,
29896,
313,
13,
12,
9182,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29906,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29947,
29941,
29946,
29941,
29896,
29945,
29918,
29945,
313,
13,
12,
20754,
384,
1426,
29892,
13,
12,
29908,
1625,
29873,
1904,
694,
1213,
1426,
29892,
13,
12,
29908,
3481,
1410,
3163,
29908,
1426,
29892,
13,
12,
29908,
4297,
2674,
3252,
391,
29908,
1426,
29892,
13,
12,
29908,
18654,
2761,
29908,
1426,
29892,
13,
12,
29908,
29934,
799,
11126,
29908,
1426,
29892,
13,
12,
29908,
29933,
388,
265,
300,
365,
688,
29908,
1426,
29892,
13,
12,
29908,
4297,
2674,
8722,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
2831,
1328,
6985,
29908,
1426,
29892,
13,
12,
29908,
4297,
2674,
3309,
29908,
1426,
29892,
13,
12,
29908,
29924,
18813,
280,
4742,
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,
1361,
8372,
1788,
338,
1304,
411,
263,
10489,
282,
391,
265,
844,
1743,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
3481,
1410,
3163,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29947,
29941,
29946,
29941,
29896,
29945,
29918,
29945,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
29954,
294,
29995,
29925,
391,
265,
29995,
5261,
1743,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
3481,
1410,
3163,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29947,
29941,
29946,
29941,
29896,
29945,
29918,
29945,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
29954,
294,
29995,
29925,
391,
265,
29995,
5261,
1743,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What hand guard system is used with a gas piston commando?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10647401_1 (
Record text,
Week numeric,
Result text,
Attendance numeric,
Opponent text,
Stadium text
);
CREATE TABLE table_1_1012730_2 (
Wins numeric,
Year numeric,
Position text,
Winnings text,
"Top 5" numeric,
"Top 10" numeric,
"Team(s)" text,
"Avg. Finish" text,
Starts numeric,
Poles numeric,
"Avg. Start" text
);
CREATE TABLE table_1_12834315_5 (
Stock text,
"Colt model no." text,
"Hand guards" text,
"Barrel twist" text,
"Fire control" text,
"Rear sight" text,
"Bayonet Lug" text,
"Barrel profile" text,
Name text,
"Forward assist" text,
"Barrel length" text,
"Muzzle device" text
);
```
### Answer
Here is the SQL query that answers the question:
`What hand guard system is used with a gas piston commando?`
```sql
| SELECT "Hand guards" FROM table_1_12834315_5 WHERE "Name" ILIKE '%Gas%Piston%Commando%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
6588,
1629,
363,
278,
1035,
324,
1943,
29871,
29896,
29900,
29900,
14176,
22102,
310,
599,
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,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29941,
313,
13,
12,
29908,
29956,
2770,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
8091,
1426,
29892,
13,
12,
29908,
28154,
30010,
29879,
13853,
978,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
2385,
2450,
1426,
29892,
13,
12,
1542,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29941,
29896,
29953,
29918,
29955,
313,
13,
12,
29908,
29943,
579,
342,
931,
313,
29879,
5513,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
29908,
29956,
513,
313,
29885,
29914,
29879,
5513,
1426,
29892,
13,
12,
29940,
362,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29896,
313,
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,
3782,
1213,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29945,
29947,
29946,
29929,
29918,
29906,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
19858,
362,
1426,
29892,
13,
12,
7504,
324,
1943,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29947,
29946,
29953,
29945,
29918,
29896,
313,
13,
12,
3195,
1426,
29892,
13,
12,
29908,
12739,
4712,
29908,
1426,
29892,
13,
12,
29908,
7976,
1889,
943,
29908,
1426,
29892,
13,
12,
28283,
16985,
29892,
13,
12,
29908,
7976,
3370,
29908,
1426,
29892,
13,
12,
29908,
7976,
8086,
13284,
29908,
1426,
29892,
13,
12,
29908,
18689,
10868,
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,
6588,
1629,
363,
278,
1035,
324,
1943,
29871,
29896,
29900,
29900,
14176,
22102,
310,
599,
931,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29945,
29947,
29946,
29929,
29918,
29906,
5754,
376,
7504,
324,
1943,
29908,
306,
5265,
6059,
14210,
29896,
29900,
29900,
29995,
7979,
271,
342,
29995,
2976,
793,
29995,
974,
29995,
497,
29995,
2230,
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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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16884,
29954,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29945,
29947,
29946,
29929,
29918,
29906,
5754,
376,
7504,
324,
1943,
29908,
306,
5265,
6059,
14210,
29896,
29900,
29900,
29995,
7979,
271,
342,
29995,
2976,
793,
29995,
974,
29995,
497,
29995,
2230,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the average year for the accolade 100 greatest singles of all time?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10577579_3 (
"Women’s Nickname" text,
Joined text,
Institution text,
Location text,
Left text,
"Men’s Nickname" text,
Enrollment numeric,
"Current Conference" text,
Founded numeric,
Classification text,
Type text
);
CREATE TABLE table_1_1231316_7 (
"Fastest time (s)" text,
Date text,
Athlete text,
"Wind (m/s)" text,
Nation text
);
CREATE TABLE table_1_10015132_1 (
Player text,
"School/Club Team" text,
Nationality text,
"No." text,
"Years in Toronto" text,
Position text
);
CREATE TABLE table_2_1715849_2 (
Year numeric,
Rank numeric,
Country text,
Publication text,
Accolade text
);
CREATE TABLE table_1_10818465_1 (
Model text,
"GA Date" text,
"Max processors" text,
RU numeric,
"Max memory" text,
"Max disk capacity" text,
"Processor frequency" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the average year for the accolade 100 greatest singles of all time?`
```sql
| SELECT AVG(YEAR) FROM table_2_1715849_2 WHERE "Accolade" ILIKE '%100%greatest%singles%of%all%time%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
797,
278,
3748,
411,
29871,
29941,
29896,
3291,
29892,
920,
1784,
14433,
892,
27943,
287,
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,
29947,
29941,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29896,
29946,
29918,
29946,
313,
13,
12,
29931,
15806,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
29908,
8120,
1338,
27943,
287,
29908,
16985,
29892,
13,
12,
29908,
29954,
1280,
5318,
29908,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
8120,
1338,
15569,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29929,
29906,
29941,
29900,
29918,
29945,
313,
13,
12,
29908,
29934,
290,
1175,
29875,
3611,
29908,
1426,
29892,
13,
12,
29949,
2200,
265,
16985,
29892,
13,
12,
7422,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29953,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
797,
278,
3748,
411,
29871,
29941,
29896,
3291,
29892,
920,
1784,
14433,
892,
27943,
287,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
8120,
1338,
27943,
287,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29896,
29946,
29918,
29946,
5754,
376,
20325,
29908,
353,
525,
29941,
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,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
8120,
1338,
27943,
287,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29896,
29946,
29918,
29946,
5754,
376,
20325,
29908,
353,
525,
29941,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`In the game with 31 points, how many goals were conceded?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140083_2 (
"Fastest Lap" text,
"Pole Position" text,
Report text,
Location text,
Rnd numeric,
Constructor text,
Date text,
Race text,
"Race Winner" text
);
CREATE TABLE table_1_18018214_4 (
Loses numeric,
Draws numeric,
Points numeric,
Wins numeric,
Position numeric,
"Goals conceded" numeric,
"Games played" numeric,
Club text,
"Goals scored" numeric
);
CREATE TABLE table_1_10979230_5 (
"Romaji title" text,
Oricon numeric,
Reference text,
"Release date" text,
"Japanese title" text
);
CREATE TABLE table_1_11677691_6 (
College text,
Player text,
School text,
Hometown text
);
```
### Answer
Here is the SQL query that answers the question:
`In the game with 31 points, how many goals were conceded?`
```sql
| SELECT COUNT("Goals conceded") FROM table_1_18018214_4 WHERE "Points" = '31' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1472,
338,
5702,
1353,
29871,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29896,
29929,
29906,
29896,
29906,
29918,
29896,
313,
13,
12,
29911,
1041,
3250,
1426,
29892,
13,
12,
1349,
1295,
3250,
1426,
29892,
13,
12,
29903,
870,
388,
1426,
29892,
13,
12,
29943,
2429,
388,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29903,
20510,
1426,
29892,
13,
12,
29924,
898,
388,
1426,
29892,
13,
12,
29956,
287,
4515,
3250,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29941,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29929,
29941,
29900,
29953,
29918,
29906,
313,
13,
12,
4205,
29883,
16985,
29892,
13,
12,
29908,
17936,
931,
29908,
1426,
29892,
13,
12,
29908,
29934,
30099,
655,
2397,
3611,
29908,
1426,
29892,
13,
12,
29908,
24636,
3611,
29908,
1426,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
17936,
16985,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1472,
338,
5702,
1353,
29871,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
17936,
931,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29929,
29941,
29900,
29953,
29918,
29906,
5754,
376,
17936,
29908,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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,
5097,
376,
17936,
931,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29941,
29929,
29941,
29900,
29953,
29918,
29906,
5754,
376,
17936,
29908,
353,
525,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How long is track number 8?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11019212_1 (
Tuesday text,
Thursday text,
Sunday text,
Friday text,
Location text,
Saturday text,
Monday text,
Wednesday text
);
CREATE TABLE table_1_1140073_2 (
Date text,
"Fastest Lap" text,
Report text,
"Race Winner" text,
Rnd numeric,
Constructor text,
Race text,
"Pole Position" text
);
CREATE TABLE table_1_11839306_2 (
Disc numeric,
"Track time" text,
"Rōmaji title" text,
"English title" text,
Artist text,
Track numeric,
"Japanese title" text
);
```
### Answer
Here is the SQL query that answers the question:
`How long is track number 8?`
```sql
| SELECT "Track time" FROM table_1_11839306_2 WHERE "Track" = '8' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
2407,
363,
15251,
29871,
29906,
29947,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29945,
29953,
29947,
29918,
29941,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29953,
29906,
29941,
29946,
29918,
29953,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29931,
2209,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
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,
1170,
278,
2407,
363,
15251,
29871,
29906,
29947,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29953,
29906,
29941,
29946,
29918,
29953,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
2987,
504,
29995,
29906,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29906,
29900,
29953,
29906,
29941,
29946,
29918,
29953,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
2987,
504,
29995,
29906,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the record for august 28`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1132568_3 (
"Fastest Lap" text,
Constructor text,
"Winning Driver" text,
Report text,
"Grand Prix" text,
"Pole Position" text,
"Rd." numeric
);
CREATE TABLE table_2_12206234_6 (
Attendance numeric,
Record text,
Opponent text,
Loss text,
Score text,
Date text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the record for august 28`
```sql
| SELECT Record FROM table_2_12206234_6 WHERE "Date" ILIKE '%august%28%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1353,
310,
4216,
29879,
363,
746,
27943,
287,
338,
29871,
29906,
29945,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29953,
29946,
29945,
29946,
29918,
29896,
313,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29945,
29918,
29953,
313,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29946,
29947,
29947,
29929,
29900,
29946,
29947,
29918,
29896,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
13454,
287,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29931,
2209,
267,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
1168,
1133,
287,
16985,
29892,
13,
12,
29903,
2616,
287,
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,
1353,
310,
4216,
29879,
363,
746,
27943,
287,
338,
29871,
29906,
29945,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
8537,
29879,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29947,
29947,
29929,
29900,
29946,
29947,
29918,
29896,
5754,
376,
1168,
1133,
287,
29908,
353,
525,
29906,
29945,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8537,
29879,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29947,
29947,
29929,
29900,
29946,
29947,
29918,
29896,
5754,
376,
1168,
1133,
287,
29908,
353,
525,
29906,
29945,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the number of draws for when conceded is 25`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1046454_1 (
"Regular Season" text,
Year numeric,
League text,
Playoffs text,
Division numeric,
"Open Cup" text
);
CREATE TABLE table_1_1140105_6 (
"Winning driver" text,
"Race Name" text,
Date text,
Constructor text,
Circuit text,
Report text
);
CREATE TABLE table_1_14889048_1 (
Wins numeric,
Position numeric,
Played numeric,
Draws numeric,
Team text,
Losses numeric,
Points numeric,
Conceded numeric,
Scored numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Name the number of draws for when conceded is 25`
```sql
| SELECT COUNT(Draws) FROM table_1_14889048_1 WHERE "Conceded" = '25' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1121,
373,
3839,
29871,
29906,
29945,
29892,
29871,
29896,
29929,
29953,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29900,
29955,
29900,
29900,
29896,
29918,
29906,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29896,
29929,
29953,
29918,
29941,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
19204,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29955,
29946,
29945,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
12883,
518,
29872,
4514,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29896,
29929,
29906,
29896,
29906,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29956,
287,
4515,
3250,
1426,
29892,
13,
12,
1349,
1295,
3250,
1426,
29892,
13,
12,
29903,
20510,
1426,
29892,
13,
12,
29911,
1041,
3250,
1426,
29892,
13,
12,
29943,
2429,
388,
1426,
29892,
13,
12,
29924,
898,
388,
1426,
29892,
13,
12,
29903,
870,
388,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1121,
373,
3839,
29871,
29906,
29945,
29892,
29871,
29896,
29929,
29953,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29900,
29955,
29900,
29900,
29896,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
344,
3266,
29995,
29906,
29945,
24163,
29896,
29929,
29953,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29900,
29955,
29900,
29900,
29896,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
344,
3266,
29995,
29906,
29945,
24163,
29896,
29929,
29953,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the result on September 25, 1966?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17407001_2 (
Opponent text,
Week numeric,
Attendance text,
Result text,
Date text
);
CREATE TABLE table_1_11960196_3 (
Game numeric,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
Score text,
"High assists" text,
Team text,
Series text
);
CREATE TABLE table_1_10874596_1 (
"Year [e ] (Ceremony)" text,
"Original title" text,
"Film title used in nomination" text,
Director text
);
CREATE TABLE table_1_11019212_1 (
Location text,
Wednesday text,
Thursday text,
Saturday text,
Tuesday text,
Friday text,
Monday text,
Sunday text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the result on September 25, 1966?`
```sql
| SELECT RESULT FROM table_2_17407001_2 WHERE "Date" ILIKE '%september%25,%1966%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
2441,
4799,
2635,
310,
278,
12720,
411,
263,
12672,
1797,
269,
29900,
29946,
321,
29900,
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,
29906,
29896,
29900,
29947,
29929,
29918,
29896,
313,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
1625,
943,
1426,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
3379,
5008,
1426,
13,
416,
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,
29965,
29889,
29903,
29889,
5593,
4712,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
1426,
29892,
13,
12,
29908,
29963,
2911,
262,
29914,
29879,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
8170,
29908,
1426,
29892,
13,
12,
29908,
4557,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29900,
29947,
29955,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29947,
29945,
29941,
29896,
29941,
29918,
29896,
313,
13,
12,
978,
1426,
29892,
13,
12,
29908,
4537,
310,
14433,
29908,
16985,
29892,
13,
12,
29908,
1256,
310,
4892,
30087,
29908,
1426,
29892,
13,
12,
29908,
4537,
310,
26091,
29908,
16985,
29892,
13,
12,
29908,
1256,
310,
12060,
29908,
1426,
29892,
13,
12,
29908,
1256,
310,
9512,
29908,
1426,
29892,
13,
12,
4537,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29900,
29918,
29906,
313,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
13,
12,
29908,
29907,
582,
311,
12060,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
23859,
12060,
29879,
29908,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
29908,
1426,
29892,
13,
12,
29908,
29907,
582,
311,
4892,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
29908,
29909,
19698,
4665,
313,
29916,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29943,
814,
1793,
19257,
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,
2441,
4799,
2635,
310,
278,
12720,
411,
263,
12672,
1797,
269,
29900,
29946,
321,
29900,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29965,
29889,
29903,
29889,
5593,
4712,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29947,
29929,
29906,
29918,
29946,
5754,
376,
29933,
9972,
4384,
8170,
29908,
306,
5265,
6059,
14210,
29903,
29900,
29946,
29995,
29923,
29900,
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,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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29965,
29889,
29903,
29889,
5593,
4712,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29947,
29929,
29906,
29918,
29946,
5754,
376,
29933,
9972,
4384,
8170,
29908,
306,
5265,
6059,
14210,
29903,
29900,
29946,
29995,
29923,
29900,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the original air date of the episode with a broadcast order s04 e01?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1221089_1 (
Founded numeric,
Nickname text,
Colors text,
Joined numeric,
Type text,
Location text,
Institution text
);
CREATE TABLE table_1_1231892_4 (
Title text,
"U.S. Air Date" text,
"Production Code" text,
"Villain/s" text,
"Broadcast Order" text,
"Number in series" numeric
);
CREATE TABLE table_1_1139087_2 (
Date text,
"Fastest Lap" text,
Constructor text,
Report text,
"Winning Driver" text,
"Pole Position" text,
"Grand Prix" text,
"Rd." numeric
);
CREATE TABLE table_1_11585313_1 (
name text,
"number of goals" numeric,
"date of death†" text,
"number of caps" numeric,
"date of birth" text,
"date of debut" text,
number numeric
);
CREATE TABLE table_1_12060_2 (
"unnamed_0" numeric,
"Crude birth rate (per 1000)" text,
"Live births" text,
"Natural change (per 1000)" text,
"Natural change" text,
"Crude death rate (per 1000)" text,
Deaths text,
"Average population (x 1000)" text,
"Fertility rates" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the original air date of the episode with a broadcast order s04 e01?`
```sql
| SELECT "U.S. Air Date" FROM table_1_1231892_4 WHERE "Broadcast Order" ILIKE '%S04%E01%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
14199,
931,
310,
29871,
29906,
299,
12616,
313,
29900,
29901,
29900,
29900,
511,
322,
263,
4712,
310,
14530,
29871,
29947,
29892,
29871,
29896,
29929,
29955,
29896,
756,
920,
1784,
6588,
17454,
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,
29929,
29941,
29955,
29955,
29918,
29906,
313,
13,
12,
29979,
3163,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29968,
6541,
1426,
29892,
13,
12,
29908,
14199,
931,
29908,
1426,
29892,
13,
12,
29908,
29968,
860,
292,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29941,
29900,
29896,
29941,
29918,
29941,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
7030,
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,
10507,
1426,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29963,
2911,
1144,
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,
14199,
931,
310,
29871,
29906,
299,
12616,
313,
29900,
29901,
29900,
29900,
511,
322,
263,
4712,
310,
14530,
29871,
29947,
29892,
29871,
29896,
29929,
29955,
29896,
756,
920,
1784,
6588,
17454,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
29979,
3163,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29947,
29929,
29941,
29955,
29955,
29918,
29906,
5754,
376,
14199,
931,
29908,
306,
5265,
6059,
14210,
29906,
299,
29995,
339,
4254,
29995,
29898,
29900,
29901,
29900,
29900,
29897,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
1096,
29995,
29947,
24163,
29896,
29929,
29955,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16884,
29954,
29898,
29979,
3163,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29947,
29929,
29941,
29955,
29955,
29918,
29906,
5754,
376,
14199,
931,
29908,
306,
5265,
6059,
14210,
29906,
299,
29995,
339,
4254,
29995,
29898,
29900,
29901,
29900,
29900,
29897,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
1096,
29995,
29947,
24163,
29896,
29929,
29955,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1489377_2 (
Yards numeric,
Date text,
Opponent text,
Result text,
Kicker text,
"Game time" text,
"Kicking team" text
);
CREATE TABLE table_1_12033013_3 (
"Written by" text,
"No. in series" text,
"Directed by" text,
"Original air date" text,
"No. in season" text,
"Production code" text,
Title text
);
CREATE TABLE table_1_10470082_6 (
"US air date" text,
"No." numeric,
Writer text,
Storyteller text,
"#" numeric,
Villains text,
Director text
);
```
### Answer
Here is the SQL query that answers the question:
`Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?`
```sql
| SELECT AVG(Yards) FROM table_2_1489377_2 WHERE "Game time" ILIKE '%2nd%quarter%(0:00)%' AND "Date" ILIKE '%november%8,%1971%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
3611,
310,
278,
2706,
10624,
491,
383,
7485,
383,
2674,
996,
411,
385,
28880,
10488,
29892,
5802,
1353,
7621,
1135,
29871,
29953,
29906,
29900,
29929,
322,
263,
6507,
2635,
310,
29871,
29896,
29929,
29941,
29946,
29899,
29896,
29896,
29899,
29900,
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,
29947,
29955,
29929,
29906,
29929,
29941,
29947,
29918,
29945,
313,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
23665,
428,
11848,
1213,
16985,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29900,
29941,
29945,
29918,
29896,
313,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
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,
2539,
310,
11757,
6906,
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,
29900,
29900,
29945,
29896,
29947,
29918,
29896,
313,
13,
12,
13696,
441,
1426,
29892,
13,
12,
29908,
9485,
538,
713,
341,
30107,
29873,
31056,
29895,
30107,
29908,
1426,
29892,
13,
12,
21602,
1426,
29892,
13,
12,
4806,
481,
265,
1426,
29892,
13,
12,
29924,
424,
336,
1426,
29892,
13,
12,
29908,
29954,
336,
2350,
313,
20334,
300,
5513,
1426,
29892,
13,
12,
1170,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29900,
29955,
29906,
29900,
29918,
29941,
313,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29933,
23980,
22135,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29946,
29941,
29947,
29945,
29918,
29896,
313,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
22406,
313,
6360,
29879,
29892,
3841,
5513,
1426,
29892,
13,
12,
29908,
5044,
4712,
29908,
1426,
29892,
13,
12,
29908,
29950,
1709,
1840,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
1123,
6338,
1230,
1426,
29892,
13,
12,
29908,
2792,
6766,
29908,
1426,
29892,
13,
12,
29908,
17946,
4712,
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,
3611,
310,
278,
2706,
10624,
491,
383,
7485,
383,
2674,
996,
411,
385,
28880,
10488,
29892,
5802,
1353,
7621,
1135,
29871,
29953,
29906,
29900,
29929,
322,
263,
6507,
2635,
310,
29871,
29896,
29929,
29941,
29946,
29899,
29896,
29896,
29899,
29900,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
18527,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29929,
29906,
29929,
29941,
29947,
29918,
29945,
5754,
376,
23665,
428,
11848,
1213,
1405,
525,
29953,
29906,
29900,
29929,
29915,
5300,
376,
19204,
29908,
306,
5265,
6059,
14210,
4317,
29001,
5300,
376,
17392,
272,
29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
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29941,
29947,
29918,
29945,
5754,
376,
23665,
428,
11848,
1213,
1405,
525,
29953,
29906,
29900,
29929,
29915,
5300,
376,
19204,
29908,
306,
5265,
6059,
14210,
4317,
29001,
5300,
376,
17392,
272,
29908,
306,
5265,
6059,
14210,
29888,
7485,
29995,
29888,
2674,
996,
29001,
5300,
376,
19729,
2635,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29941,
29946,
29899,
29896,
29896,
29899,
29900,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the title of the film directed by Friz Freleng with an MM Series, production number greater than 6209 and a release date of 1934-11-03?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18792938_5 (
Director text,
"Release date" text,
Series text,
"Production Num." numeric,
Title text
);
CREATE TABLE table_1_1214035_1 (
Playoffs text,
"Open Cup" text,
Division text,
"Regular Season" text,
League text,
Year numeric
);
CREATE TABLE table_1_11713303_2 (
"Replaced by" text,
"Date of appointment" text,
"Outgoing manager" text,
"Date of vacancy" text,
"Manner of departure" text,
Team text
);
CREATE TABLE table_1_100518_1 (
Consort text,
"Guardian Mātṛkā" text,
Direction text,
Weapon text,
Mantra text,
"Graha (Planet)" text,
Name text
);
CREATE TABLE table_1_11950720_3 (
"Bowling Style" text,
"First Class Team" text,
Player text,
"Batting Style" text,
"Date of Birth" text,
"No." text
);
CREATE TABLE table_1_10284385_1 (
Party text,
"Age (years, days)" text,
"End Date" text,
"House term" text,
"Date of birth" text,
Representative text,
"State served" text,
"Begin Date" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the title of the film directed by Friz Freleng with an MM Series, production number greater than 6209 and a release date of 1934-11-03?`
```sql
| SELECT Title FROM table_2_18792938_5 WHERE "Production Num." > '6209' AND "Series" ILIKE '%mm%' AND "Director" ILIKE '%friz%freleng%' AND "Release date" ILIKE '%1934-11-03%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
3001,
1353,
310,
7115,
988,
1776,
414,
338,
29871,
29929,
29889,
29941,
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,
29945,
29953,
29947,
29896,
29953,
29947,
29953,
29918,
29946,
313,
13,
12,
29908,
29934,
1218,
29914,
2713,
598,
313,
29896,
29947,
29899,
29946,
29929,
5513,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
29940,
523,
5513,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
22606,
5513,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29164,
8276,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29896,
313,
13,
12,
29908,
29902,
893,
434,
20743,
313,
28116,
5513,
1426,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29902,
893,
434,
20743,
313,
7838,
9601,
7542,
2450,
4312,
4514,
29908,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
29908,
29924,
524,
482,
313,
28116,
5513,
1426,
29892,
13,
12,
29908,
29924,
524,
482,
313,
7838,
9601,
7542,
2450,
4312,
4514,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29896,
29941,
29947,
29947,
29947,
29918,
29896,
313,
13,
12,
4557,
16985,
29892,
13,
12,
3727,
2782,
1426,
29892,
13,
12,
29908,
1170,
408,
337,
16145,
29908,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
29934,
774,
29884,
2782,
1426,
29892,
13,
12,
29908,
4421,
336,
2986,
29914,
29903,
1025,
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,
3001,
1353,
310,
7115,
988,
1776,
414,
338,
29871,
29929,
29889,
29941,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
29934,
804,
313,
29164,
8276,
25760,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29953,
29947,
29896,
29953,
29947,
29953,
29918,
29946,
5754,
376,
1043,
414,
313,
19958,
1080,
5513,
306,
5265,
6059,
14210,
29929,
29889,
29941,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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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,
5097,
21122,
703,
29934,
804,
313,
29164,
8276,
25760,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29953,
29947,
29896,
29953,
29947,
29953,
29918,
29946,
5754,
376,
1043,
414,
313,
19958,
1080,
5513,
306,
5265,
6059,
14210,
29929,
29889,
29941,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the total number of rank where viewers is 9.38?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_15681686_4 (
"Rating/Share (18-49)" text,
Rating text,
"#" numeric,
"Rank (Night)" text,
Episode text,
"Viewers (millions)" text,
Share numeric,
"Rank (Week)" text,
"Rank (Timeslot)" text
);
CREATE TABLE table_1_11916083_1 (
"Issue Price (Proof)" text,
Artist text,
Year numeric,
"Issue Price (BU)[ clarification needed ]" text,
Theme text,
"Mintage (Proof)" text,
"Mintage (BU)[ clarification needed ]" text
);
CREATE TABLE table_1_12113888_1 (
Number numeric,
Built text,
"Name as rebuilt" text,
Builder text,
Rebuilt text,
"Scrapped/Sold" text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the total number of rank where viewers is 9.38?`
```sql
| SELECT COUNT("Rank (Timeslot)") FROM table_1_15681686_4 WHERE "Viewers (millions)" ILIKE '%9.38%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
2522,
487,
756,
385,
438,
407,
265,
296,
297,
278,
2186,
310,
592,
29882,
6051,
260,
801,
12737,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29929,
29900,
29953,
29945,
29946,
29918,
29906,
313,
13,
12,
2539,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29949,
407,
265,
296,
297,
278,
2186,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29945,
29946,
29906,
29896,
29918,
29896,
313,
13,
12,
2385,
1426,
29892,
13,
12,
26486,
1426,
29892,
13,
12,
29908,
3782,
29889,
5373,
2782,
29908,
16985,
29892,
13,
12,
29908,
29907,
1503,
639,
3789,
29908,
16985,
29892,
13,
12,
29908,
12883,
5373,
2782,
29908,
1426,
29892,
13,
12,
29908,
8325,
7814,
1213,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
2522,
487,
756,
385,
438,
407,
265,
296,
297,
278,
2186,
310,
592,
29882,
6051,
260,
801,
12737,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29929,
29900,
29953,
29945,
29946,
29918,
29906,
5754,
376,
29949,
407,
265,
296,
297,
278,
2186,
29908,
306,
5265,
6059,
14210,
1004,
29882,
6051,
29995,
29873,
801,
12737,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29929,
29900,
29953,
29945,
29946,
29918,
29906,
5754,
376,
29949,
407,
265,
296,
297,
278,
2186,
29908,
306,
5265,
6059,
14210,
1004,
29882,
6051,
29995,
29873,
801,
12737,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent in the final of mehdi tahiri?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_15290654_2 (
Date numeric,
Tournament text,
Surface text,
Score text,
"Opponent in the final" text
);
CREATE TABLE table_1_1015421_1 (
Class text,
Operator text,
"No. Built" numeric,
"Cars per Set" numeric,
"Year Built" text,
"Unit nos." text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Score has an Opponent in the final of mehdi tahiri?`
```sql
| SELECT Score FROM table_2_15290654_2 WHERE "Opponent in the final" ILIKE '%mehdi%tahiri%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
23923,
23860,
310,
29871,
29896,
29889,
29906,
24170,
29920,
29892,
322,
263,
23708,
8666,
313,
3148,
29928,
1723,
310,
395,
29955,
29900,
338,
825,
9909,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29929,
29947,
29946,
29918,
29906,
313,
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,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29896,
29896,
29946,
29900,
29953,
29953,
29918,
29896,
313,
13,
12,
29908,
19729,
8666,
313,
3148,
29928,
1723,
29908,
1426,
29892,
13,
12,
29908,
29931,
29906,
7090,
29908,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29908,
7439,
1353,
29898,
29879,
5513,
1426,
29892,
13,
12,
13072,
29873,
482,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
11373,
1426,
29892,
13,
12,
29908,
29879,
10299,
1353,
29908,
1426,
29892,
13,
12,
29908,
6857,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29896,
29955,
29896,
29946,
29918,
29906,
313,
13,
12,
29908,
15263,
12965,
29908,
1426,
29892,
13,
12,
29908,
27648,
2708,
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,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
27276,
1426,
29892,
13,
12,
29908,
20325,
12965,
29908,
1426,
29892,
13,
12,
29908,
4074,
3146,
307,
12965,
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,
23923,
23860,
310,
29871,
29896,
29889,
29906,
24170,
29920,
29892,
322,
263,
23708,
8666,
313,
3148,
29928,
1723,
310,
395,
29955,
29900,
338,
825,
9909,
29973,
29952,
13,
28956,
2850,
13,
5097,
29141,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29896,
29896,
29946,
29900,
29953,
29953,
29918,
29896,
5754,
376,
23923,
23860,
29908,
306,
5265,
6059,
14210,
29896,
29889,
29906,
29995,
12443,
29920,
29001,
5300,
376,
19729,
8666,
313,
3148,
29928,
1723,
29908,
306,
5265,
6059,
14210,
29938,
29955,
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,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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,
5097,
29141,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29896,
29896,
29946,
29900,
29953,
29953,
29918,
29896,
5754,
376,
23923,
23860,
29908,
306,
5265,
6059,
14210,
29896,
29889,
29906,
29995,
12443,
29920,
29001,
5300,
376,
19729,
8666,
313,
3148,
29928,
1723,
29908,
306,
5265,
6059,
14210,
29938,
29955,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10718984_2 (
Title text,
"Written by" text,
"Original air date" text,
"No. in season" numeric,
"No. in series" numeric,
"Directed by" text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_2_14114066_1 (
"Release price ( USD )" text,
"L2 cache" text,
"Release date" text,
"Part number(s)" text,
Voltage text,
Frequency text,
Socket text,
"sSpec number" text,
"Mult." text
);
CREATE TABLE table_1_12261714_2 (
"General classification" text,
"Mountains classification" text,
"Trofeo Fast Team" text,
"Young rider classification" text,
Winner text,
Stage text,
"Points classification" text,
"Intergiro classification" text
);
```
### Answer
Here is the SQL query that answers the question:
`Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket?`
```sql
| SELECT Socket FROM table_2_14114066_1 WHERE "Frequency" ILIKE '%1.2%ghz%' AND "Release price ( USD )" ILIKE '%$70%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
508,
366,
1827,
338,
278,
1734,
515,
310,
3514,
16345,
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,
29946,
29896,
29945,
29953,
29918,
29896,
313,
13,
12,
2369,
509,
1934,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
17734,
1076,
5166,
29908,
1426,
29892,
13,
12,
29908,
29931,
14556,
5166,
29908,
1426,
29892,
13,
12,
29908,
29925,
374,
911,
341,
4992,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29946,
29929,
29953,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29900,
29945,
29955,
29906,
29918,
29946,
313,
13,
12,
29968,
29882,
1050,
16985,
29892,
13,
12,
29908,
14463,
3812,
29908,
1426,
29892,
13,
12,
29908,
1964,
29909,
29899,
12182,
29908,
1426,
29892,
13,
12,
3904,
1692,
20728,
1426,
29892,
13,
12,
1917,
16985,
29892,
13,
12,
16107,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29941,
29945,
29918,
29896,
313,
13,
12,
29908,
12787,
326,
630,
4892,
29879,
29908,
1426,
29892,
13,
12,
7094,
1288,
1426,
29892,
13,
12,
29908,
7583,
4234,
310,
4423,
29908,
1426,
29892,
13,
12,
29908,
22034,
786,
1000,
20123,
29908,
1426,
29892,
13,
12,
29907,
1160,
1426,
29892,
13,
12,
29908,
26666,
2794,
363,
4158,
12088,
886,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
508,
366,
1827,
338,
278,
1734,
515,
310,
3514,
16345,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
14463,
3812,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29900,
29945,
29955,
29906,
29918,
29946,
5754,
376,
16107,
29908,
306,
5265,
6059,
14210,
13445,
29995,
19570,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
14463,
3812,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29900,
29945,
29955,
29906,
29918,
29946,
5754,
376,
16107,
29908,
306,
5265,
6059,
14210,
13445,
29995,
19570,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What can you say is the word from of sam sep?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12454156_1 (
Entrants numeric,
Winner text,
"Winning Hand" text,
"Losing Hand" text,
"Prize Money" text,
Year numeric,
"Runner-Up" text
);
CREATE TABLE table_1_11622496_1 (
Tournament text,
Location text,
Score text,
"Purse( $ )" numeric,
Date text,
"1st Prize( $ )" text
);
CREATE TABLE table_2_1270572_4 (
Khmer numeric,
"Word Form" text,
"ALA-LC" text,
UNGEGN text,
Value numeric,
Other text
);
CREATE TABLE table_1_11391954_3 (
Total numeric,
"Marathon (mens)" numeric,
"Half Marathon (mens)" numeric,
"Marathon (womens)" numeric,
Country text,
"Half Marathon (womens)" numeric
);
CREATE TABLE table_1_10335_1 (
"Estimated deaths" text,
Operational text,
"Current country of location" text,
"Occupied territory" text,
Camp text,
"Primary means for mass killings" text
);
```
### Answer
Here is the SQL query that answers the question:
`What can you say is the word from of sam sep?`
```sql
| SELECT "Word Form" FROM table_2_1270572_4 WHERE "Other" ILIKE '%sam%sep%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
22950,
1258,
8583,
16572,
3275,
278,
10907,
12965,
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,
29900,
29896,
29900,
29947,
29945,
29955,
29918,
29896,
29941,
313,
13,
12,
29908,
7141,
2232,
23236,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
20325,
23236,
29908,
1426,
29892,
13,
12,
27276,
16985,
29892,
13,
12,
29908,
3492,
865,
390,
1241,
23236,
29908,
1426,
29892,
13,
12,
29908,
15263,
23236,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29955,
29900,
29906,
29953,
29896,
29918,
29906,
313,
13,
12,
29908,
16802,
29898,
29879,
6817,
786,
29908,
1426,
29892,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
29908,
17734,
1076,
8158,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
3930,
310,
15354,
29908,
1426,
29892,
13,
12,
29908,
29945,
29946,
26532,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29906,
313,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29955,
29946,
29945,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
12883,
518,
29872,
4514,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29896,
29900,
29947,
29929,
29918,
29896,
313,
13,
12,
1625,
943,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
10844,
1312,
16985,
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,
5328,
1784,
22950,
1258,
8583,
16572,
3275,
278,
10907,
12965,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
27276,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29900,
29896,
29900,
29947,
29945,
29955,
29918,
29896,
29941,
5754,
376,
7141,
2232,
23236,
29908,
306,
5265,
6059,
14210,
19409,
29995,
29903,
3459,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
27276,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29900,
29896,
29900,
29947,
29945,
29955,
29918,
29896,
29941,
5754,
376,
7141,
2232,
23236,
29908,
306,
5265,
6059,
14210,
19409,
29995,
29903,
3459,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many stages did Team Sky lead the teams classification?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_26010857_13 (
"Teams Classification" text,
Winner text,
"Points Classification" text,
Stage numeric,
"Young Rider Classification" text,
"General Classification" text
);
CREATE TABLE table_1_11570261_2 (
"Runner(s)-up" text,
Championship text,
"Winning score" text,
Year numeric,
"Margin of victory" text,
"54 holes" text
);
CREATE TABLE table_1_11274401_2 (
Timeslot text,
"Rank (#)" text,
Share numeric,
Episode text,
"18–49 (Rating/Share)" text,
"No." numeric,
Rating text,
"Viewers (m)" text,
"Air Date" text
);
CREATE TABLE table_1_10874596_1 (
"Film title used in nomination" text,
Result text,
"Year [e ] (Ceremony)" text,
Director text,
"Original title" text
);
CREATE TABLE table_1_1221089_1 (
Colors text,
Location text,
Nickname text,
Type text,
Institution text,
Joined numeric,
Founded numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many stages did Team Sky lead the teams classification?`
```sql
| SELECT MAX(Stage) FROM table_1_26010857_13 WHERE "Teams Classification" ILIKE '%Team%Sky%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
6588,
3573,
7915,
746,
5807,
905,
338,
29871,
29947,
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,
29946,
29896,
29953,
29945,
29946,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
1175,
272,
11395,
29898,
29879,
5513,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
29892,
13,
12,
17936,
1426,
29892,
13,
12,
29908,
2499,
2404,
1024,
29908,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29945,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
19204,
396,
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,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29953,
29900,
29906,
29896,
29918,
29896,
313,
13,
12,
29908,
5647,
307,
1765,
287,
29892,
6376,
800,
4034,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
9692,
261,
1426,
29892,
13,
12,
29908,
15666,
1991,
29899,
7662,
19843,
6287,
29908,
1426,
29892,
13,
12,
2111,
261,
403,
1426,
29892,
13,
12,
29908,
2928,
307,
1765,
287,
29892,
9330,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
29908,
2928,
307,
1765,
287,
29892,
6376,
800,
4034,
11678,
14927,
29908,
1426,
29892,
13,
12,
29908,
5647,
307,
1765,
287,
29892,
9330,
29899,
15988,
14927,
29908,
1426,
29892,
13,
12,
29908,
5647,
307,
3259,
317,
1052,
267,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29955,
29946,
29941,
29918,
29896,
313,
13,
12,
20325,
1426,
29892,
13,
12,
29908,
4782,
7408,
29908,
16985,
29892,
13,
12,
29908,
5098,
29907,
6536,
29908,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
13454,
29899,
2696,
29908,
16985,
29892,
13,
12,
29908,
13404,
7993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29906,
313,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29955,
29929,
29945,
29929,
29941,
29918,
29896,
29896,
313,
13,
12,
29903,
29876,
905,
16985,
29892,
13,
12,
29908,
11536,
313,
9415,
5513,
1426,
29892,
13,
12,
29908,
29907,
14044,
669,
432,
5968,
29908,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
8434,
7915,
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,
6588,
3573,
7915,
746,
5807,
905,
338,
29871,
29947,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
8434,
7915,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29955,
29929,
29945,
29929,
29941,
29918,
29896,
29896,
5754,
376,
29903,
29876,
905,
29908,
353,
525,
29947,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16884,
29954,
29898,
8434,
7915,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29955,
29929,
29945,
29929,
29941,
29918,
29896,
29896,
5754,
376,
29903,
29876,
905,
29908,
353,
525,
29947,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the average bodyweight when snatch is 80?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10416547_1 (
"Major instrument(s)" text,
Date text,
"Music genre/style" text,
"Lyrics theme/style" text,
Track text,
"Album name" text,
"Track title" text,
Duration text,
Lyricist text
);
CREATE TABLE table_1_11630008_5 (
Title text,
"Series #" numeric,
"Production code" numeric,
"Directed by" text,
"Original air date" text,
"Written by" text,
"Season #" numeric
);
CREATE TABLE table_1_11256021_1 (
"Extroverted, Relationship-Oriented" text,
Founder text,
"People-task orientation scale" text,
Moderate text,
"Introverted, Task-Oriented" text,
"Introverted, Relationship Oriented" text,
"Extroverted, Task-Oriented" text,
"Extroversion Scales" text
);
CREATE TABLE table_1_1059743_1 (
Points text,
"Group stage" numeric,
"AFC Cup" numeric,
Rank numeric,
"Play-off" numeric,
"Member Association" text
);
CREATE TABLE table_1_11960407_2 (
"High assists" text,
Game numeric,
Score text,
Record text,
"High points" text,
"Location Attendance" text,
"High rebounds" text,
Team text
);
CREATE TABLE table_2_11279593_11 (
Snatch numeric,
"Total (kg)" text,
"Clean & jerk" numeric,
Name text,
Bodyweight numeric
);
```
### Answer
Here is the SQL query that answers the question:
`what is the average bodyweight when snatch is 80?`
```sql
| SELECT AVG(Bodyweight) FROM table_2_11279593_11 WHERE "Snatch" = '80' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
7867,
756,
263,
9321,
8583,
310,
9753,
2524,
3476,
1111,
29892,
322,
263,
8448,
310,
3748,
29871,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29941,
29929,
29929,
29953,
29918,
29946,
313,
13,
12,
29908,
9588,
328,
8583,
29908,
1426,
29892,
13,
12,
29908,
11184,
8583,
29908,
1426,
29892,
13,
12,
14199,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29945,
29941,
29945,
29906,
29918,
29896,
313,
13,
12,
29908,
11536,
14333,
749,
29908,
16985,
29892,
13,
12,
29908,
29909,
19698,
14333,
749,
29908,
16985,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
29903,
637,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29945,
29906,
29947,
29941,
29900,
29918,
29906,
313,
13,
12,
9182,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
8050,
1426,
29892,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
29908,
29968,
860,
2696,
518,
29874,
4514,
29908,
1426,
29892,
13,
12,
22606,
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,
8809,
436,
7867,
756,
263,
9321,
8583,
310,
9753,
2524,
3476,
1111,
29892,
322,
263,
8448,
310,
3748,
29871,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29941,
29929,
29929,
29953,
29918,
29946,
5754,
376,
9588,
328,
8583,
29908,
306,
5265,
6059,
14210,
28455,
29995,
16799,
3476,
1111,
29001,
5300,
376,
14199,
29908,
306,
5265,
6059,
14210,
11802,
29995,
29906,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29941,
29929,
29929,
29953,
29918,
29946,
5754,
376,
9588,
328,
8583,
29908,
306,
5265,
6059,
14210,
28455,
29995,
16799,
3476,
1111,
29001,
5300,
376,
14199,
29908,
306,
5265,
6059,
14210,
11802,
29995,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Result has a Road Team of san francisco, and a Game of game 2?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17063996_4 (
"Road Team" text,
"Home Team" text,
Game text,
Result text,
Date text
);
CREATE TABLE table_1_10815352_1 (
"Total attendance" numeric,
"Average attendance" numeric,
Games numeric,
Season text,
Country text,
League text,
Sport text
);
CREATE TABLE table_1_11452830_2 (
Record text,
Attendance text,
TV text,
"Game site" text,
"Kickoff [a ]" text,
Week text,
Opponent text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Result has a Road Team of san francisco, and a Game of game 2?`
```sql
| SELECT RESULT FROM table_2_17063996_4 WHERE "Road Team" ILIKE '%san%francisco%' AND "Game" ILIKE '%game%2%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
7115,
363,
278,
4847,
988,
727,
526,
29871,
29896,
29896,
3291,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29929,
29896,
29946,
29900,
29955,
29918,
29896,
29900,
313,
13,
12,
29908,
20097,
3291,
29908,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
29903,
1251,
17084,
1426,
29892,
13,
12,
29908,
29934,
804,
3291,
29908,
1426,
29892,
13,
12,
11536,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29896,
313,
13,
12,
29923,
3334,
2631,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
18984,
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,
7115,
363,
278,
4847,
988,
727,
526,
29871,
29896,
29896,
3291,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29934,
804,
3291,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29929,
29896,
29946,
29900,
29955,
29918,
29896,
29900,
5754,
376,
20097,
3291,
29908,
306,
5265,
6059,
14210,
29896,
29896,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29934,
804,
3291,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29929,
29896,
29946,
29900,
29955,
29918,
29896,
29900,
5754,
376,
20097,
3291,
29908,
306,
5265,
6059,
14210,
29896,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the rank for the player where there are 11 points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18191407_10 (
"Score points" text,
Event text,
Shooter text,
"Rank points" text,
Total text
);
CREATE TABLE table_1_11240028_1 (
Episodes text,
"Last appearance" text,
"Portrayed by" text,
Character text,
"First appearance" text,
Duration text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the rank for the player where there are 11 points?`
```sql
| SELECT "Rank points" FROM table_2_18191407_10 WHERE "Score points" ILIKE '%11%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
278,
364,
1241,
1058,
750,
385,
11423,
931,
322,
263,
413,
1450,
294,
9940,
503,
29916,
29899,
29896,
29900,
29878,
4768,
446,
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,
29908,
29896,
29929,
29955,
29929,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29929,
29947,
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,
29900,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29953,
29900,
12672,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29929,
29896,
23291,
29908,
1426,
29892,
13,
12,
29908,
29896,
29929,
29929,
29929,
23291,
29908,
1426,
29892,
13,
12,
20755,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29953,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29955,
313,
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,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29947,
29929,
29906,
29953,
29918,
29896,
313,
13,
12,
29908,
29896,
29929,
29947,
29896,
20121,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
2661,
1213,
16985,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29896,
20121,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29929,
29896,
20121,
29908,
16985,
29892,
13,
12,
18457,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29947,
29946,
29900,
29946,
29918,
29906,
313,
13,
12,
2481,
1426,
29892,
13,
12,
29933,
9345,
1426,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
5756,
16985,
29892,
13,
12,
29934,
1241,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29947,
29896,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
1349,
1823,
8905,
29908,
1426,
29892,
13,
12,
29908,
6730,
8905,
29908,
1426,
29892,
13,
12,
29908,
11863,
8905,
29908,
1426,
29892,
13,
12,
29908,
29943,
473,
386,
8905,
29908,
1426,
29892,
13,
12,
20622,
29879,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
471,
278,
364,
1241,
1058,
750,
385,
11423,
931,
322,
263,
413,
1450,
294,
9940,
503,
29916,
29899,
29896,
29900,
29878,
4768,
446,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
1241,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
1241,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29947,
29946,
29900,
29946,
29918,
29906,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
5753,
1693,
29001,
5300,
376,
29933,
9345,
29908,
306,
5265,
6059,
14210,
1335,
11102,
9940,
29995,
29920,
29916,
29899,
29896,
29900,
29878,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was the rider who had an accident time and a kawasaki zx-10r bike?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10312547_1 (
"1979 Broadway" text,
"1998 Broadway" text,
"1955 broadcast" text,
"1954 Broadway" text,
"1990 Broadway" text,
"1960 broadcast" text,
"1991 Broadway" text,
"1999 Broadway" text,
Character text
);
CREATE TABLE table_1_11677100_16 (
Hometown text,
Position text,
School text,
"MLB Draft" text,
Player text
);
CREATE TABLE table_1_11111116_7 (
Title text,
"Original air date" text,
"No. in series" numeric,
"Written by" text,
"Directed by" text,
"U.S. viewers (million)" text,
"No. in season" numeric
);
CREATE TABLE table_1_10138926_1 (
"1981 Census" numeric,
"2010 Est." numeric,
City text,
"2001 Census" numeric,
"1991 Census" numeric,
Region text,
"#" numeric
);
CREATE TABLE table_2_15878404_2 (
Time text,
Bike text,
Laps numeric,
Grid numeric,
Rider text
);
CREATE TABLE table_1_12148147_2 (
"Third Year" text,
"First Year" text,
"Second Year" text,
"Fourth Year" text,
Subjects text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was the rider who had an accident time and a kawasaki zx-10r bike?`
```sql
| SELECT Rider FROM table_2_15878404_2 WHERE "Time" ILIKE '%accident%' AND "Bike" ILIKE '%kawasaki%zx-10r%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
14574,
756,
263,
315,
10536,
8583,
310,
7629,
6370,
394,
283,
21158,
313,
6071,
298,
11348,
3025,
281,
2559,
666,
387,
6877,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29953,
29947,
29929,
29941,
29918,
29941,
313,
13,
12,
8514,
1426,
29892,
13,
12,
29908,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
29892,
13,
12,
29908,
6572,
29899,
25525,
3483,
858,
29908,
1426,
29892,
13,
12,
29908,
3306,
3440,
1061,
29898,
29879,
5513,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29925,
277,
1634,
272,
2153,
29908,
1426,
29892,
13,
12,
13724,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29929,
29946,
29947,
29941,
29906,
29918,
29896,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
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,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29955,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29900,
29955,
29906,
29900,
29918,
29941,
313,
13,
12,
29908,
29933,
23980,
22135,
29908,
1426,
29892,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29896,
29906,
29946,
29900,
29941,
29918,
29941,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
9207,
29931,
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,
8809,
436,
14574,
756,
263,
315,
10536,
8583,
310,
7629,
6370,
394,
283,
21158,
313,
6071,
298,
11348,
3025,
281,
2559,
666,
387,
6877,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29896,
29906,
29946,
29900,
29941,
29918,
29941,
5754,
376,
9207,
29931,
8583,
29908,
306,
5265,
6059,
14210,
14132,
6370,
29995,
284,
283,
21158,
29995,
29898,
6071,
29995,
29882,
11348,
29995,
6071,
29995,
29893,
2559,
666,
387,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29896,
29906,
29946,
29900,
29941,
29918,
29941,
5754,
376,
9207,
29931,
8583,
29908,
306,
5265,
6059,
14210,
14132,
6370,
29995,
284,
283,
21158,
29995,
29898,
6071,
29995,
29882,
11348,
29995,
6071,
29995,
29893,
2559,
666,
387,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Player has a CFL Team of montreal alouettes (via hamilton via winnipeg)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10716893_3 (
Host text,
"Lap-by-lap" text,
"Pre-race analyst" text,
"Color commentator(s)" text,
Year numeric,
"Pit reporters" text,
Network text
);
CREATE TABLE table_1_11694832_1 (
Title text,
"Directed by" text,
"Original air date" text,
"Written by" text,
"Production code" text,
"No. in series" numeric,
"U.S. viewers (millions)" text,
"No. in season" numeric
);
CREATE TABLE table_1_11630008_7 (
"Directed by" text,
"Series #" numeric,
"Original air date" text,
"Season #" numeric
);
CREATE TABLE table_1_11950720_3 (
"Batting Style" text,
"Bowling Style" text,
"No." text,
"First Class Team" text,
"Date of Birth" text
);
CREATE TABLE table_2_10812403_3 (
Player text,
Position text,
"Pick #" numeric,
College text,
"CFL Team" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Player has a CFL Team of montreal alouettes (via hamilton via winnipeg)?`
```sql
| SELECT Player FROM table_2_10812403_3 WHERE "CFL Team" ILIKE '%montreal%alouettes%(via%hamilton%via%winnipeg)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
21669,
2113,
278,
8271,
310,
432,
6547,
302,
29889,
11982,
1915,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29941,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29946,
29906,
29953,
29918,
29896,
29947,
313,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
29892,
13,
12,
7439,
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,
5328,
1784,
21669,
2113,
278,
8271,
310,
432,
6547,
302,
29889,
11982,
1915,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29907,
5380,
1078,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29946,
29906,
29953,
29918,
29896,
29947,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,
14210,
11639,
29995,
29940,
29889,
29995,
29903,
392,
1915,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29907,
5380,
1078,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29946,
29906,
29953,
29918,
29896,
29947,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,
14210,
11639,
29995,
29940,
29889,
29995,
29903,
392,
1915,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many candidates won the election of john n. sandlin?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10953197_3 (
"No. in season" numeric,
"No. in series" numeric,
"Writer(s)" text,
"Original air date" text,
"Production code" text,
Director text,
Title text
);
CREATE TABLE table_1_1342426_18 (
Incumbent text,
District text,
Result text,
Candidates text,
"First elected" numeric,
Party text
);
```
### Answer
Here is the SQL query that answers the question:
`How many candidates won the election of john n. sandlin?`
```sql
| SELECT COUNT(Candidates) FROM table_1_1342426_18 WHERE "Incumbent" ILIKE '%John%N.%Sandlin%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
278,
21342,
29906,
8892,
1076,
8583,
565,
12051,
20594,
514,
22533,
20594,
514,
471,
278,
365,
3580,
29896,
8892,
1076,
8583,
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,
29947,
29946,
29953,
29945,
29918,
29896,
313,
13,
12,
29908,
7976,
3370,
29908,
1426,
29892,
13,
12,
29908,
12739,
4712,
29908,
1426,
29892,
13,
12,
3195,
1426,
29892,
13,
12,
28283,
16985,
29892,
13,
12,
29908,
7976,
8086,
13284,
29908,
1426,
29892,
13,
12,
29908,
18689,
10868,
29908,
1426,
29892,
13,
12,
29908,
7976,
1889,
943,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29947,
29953,
29945,
29955,
29953,
29941,
29918,
29906,
313,
13,
12,
29908,
10536,
29924,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
23799,
29906,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
29934,
299,
1213,
16985,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
23799,
29896,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
29931,
3580,
29906,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
29931,
3580,
29896,
8892,
1076,
8583,
29908,
1426,
29892,
13,
12,
12191,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29941,
29953,
29918,
29896,
313,
13,
12,
2500,
2497,
1426,
29892,
13,
12,
29908,
3782,
29889,
310,
10406,
29899,
29949,
3814,
267,
297,
5190,
3038,
29908,
16985,
29892,
13,
12,
3664,
362,
1426,
29892,
13,
12,
29908,
29907,
719,
11195,
3829,
29908,
1426,
29892,
13,
12,
29908,
29911,
274,
313,
29968,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29953,
29906,
29896,
29946,
29941,
29918,
29896,
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,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
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,
22110,
471,
278,
21342,
29906,
8892,
1076,
8583,
565,
12051,
20594,
514,
22533,
20594,
514,
471,
278,
365,
3580,
29896,
8892,
1076,
8583,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
23799,
29906,
8892,
1076,
8583,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29947,
29953,
29945,
29955,
29953,
29941,
29918,
29906,
5754,
376,
29931,
3580,
29896,
8892,
1076,
8583,
29908,
306,
5265,
6059,
14210,
29954,
1727,
29995,
29924,
550,
514,
29995,
3226,
29877,
29995,
29924,
550,
514,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
23799,
29906,
8892,
1076,
8583,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29947,
29953,
29945,
29955,
29953,
29941,
29918,
29906,
5754,
376,
29931,
3580,
29896,
8892,
1076,
8583,
29908,
306,
5265,
6059,
14210,
29954,
1727,
29995,
29924,
550,
514,
29995,
3226,
29877,
29995,
29924,
550,
514,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10818465_1 (
"Max memory" text,
"GA Date" text,
Model text,
RU numeric,
"Max disk capacity" text,
"Processor frequency" text,
"Max processors" text
);
CREATE TABLE table_1_24865763_2 (
"FLM Winning Team" text,
"GT2 Winning Team" text,
"Rnd." numeric,
Circuit text,
"GT1 Winning Team" text,
"LMP2 Winning Team" text,
"LMP1 Winning Team" text,
Results text
);
CREATE TABLE table_1_101336_1 (
Formula text,
"No. of Cu-O planes in unit cell" numeric,
Notation text,
"Crystal structure" text,
"T c (K)" numeric
);
CREATE TABLE table_1_11562143_1 (
"Written by" text,
"Original air date" text,
"No. in series" numeric,
"No. in season" numeric,
"Featured character(s)" text,
"Directed by" text,
Title text,
"U.S. viewers (million)" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?`
```sql
| SELECT "GT2 Winning Team" FROM table_1_24865763_2 WHERE "LMP1 Winning Team" ILIKE '%Greg%Mansell%Leo%Mansell%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
28563,
267,
1708,
278,
2602,
310,
8372,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29946,
29929,
29946,
29945,
29929,
29929,
29918,
29896,
29900,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
402,
374,
5617,
3687,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
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,
9075,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
12739,
319,
19698,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
8140,
2667,
16985,
29892,
13,
12,
29931,
15806,
16985,
29892,
13,
12,
29908,
29954,
1280,
7412,
287,
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,
5328,
1784,
28563,
267,
1708,
278,
2602,
310,
8372,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
9075,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29946,
29929,
29946,
29945,
29929,
29929,
29918,
29896,
29900,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
9485,
538,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
9075,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29946,
29929,
29946,
29945,
29929,
29929,
29918,
29896,
29900,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
9485,
538,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many athletes play the position of guard?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_16494599_10 (
Player text,
"Years for Grizzlies" text,
"No." numeric,
Position text,
"School/Club Team" text,
Nationality text
);
CREATE TABLE table_1_1255110_7 (
"Goals Against" numeric,
Player text,
Wins numeric,
"GA Average" text,
Club text,
Minutes numeric,
Loses numeric,
"Games Played" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many athletes play the position of guard?`
```sql
| SELECT COUNT(Player) FROM table_1_16494599_10 WHERE "Position" ILIKE '%Guard%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4847,
338,
23868,
29871,
29941,
29941,
322,
756,
263,
3086,
537,
310,
8278,
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,
29955,
29945,
29929,
29900,
29918,
29896,
313,
13,
12,
29979,
3163,
16985,
29892,
13,
12,
29908,
28958,
1273,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
8909,
29873,
1080,
16985,
29892,
13,
12,
4165,
3456,
29879,
16985,
29892,
13,
12,
29908,
29954,
1280,
4687,
29908,
16985,
29892,
13,
12,
15852,
3204,
29879,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
4074,
1441,
29879,
16985,
29892,
13,
12,
29908,
29979,
3163,
29914,
4165,
3456,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29941,
29906,
29929,
29906,
29918,
29941,
313,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
29940,
5688,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29900,
29947,
29955,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29947,
29941,
29945,
29918,
29929,
313,
13,
12,
29925,
1745,
4285,
4034,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29925,
1745,
631,
1426,
29892,
13,
12,
29908,
16802,
5020,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29946,
313,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29963,
2911,
1144,
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,
4847,
338,
23868,
29871,
29941,
29941,
322,
756,
263,
3086,
537,
310,
8278,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29941,
29906,
29929,
29906,
29918,
29941,
5754,
376,
27325,
537,
29908,
306,
5265,
6059,
14210,
11326,
29001,
5300,
376,
29925,
860,
29908,
353,
525,
29941,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29941,
29906,
29929,
29906,
29918,
29941,
5754,
376,
27325,
537,
29908,
306,
5265,
6059,
14210,
11326,
29001,
5300,
376,
29925,
860,
29908,
353,
525,
29941,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which player is Pick 33 and has a Nationality of USA?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1037590_1 (
Yards numeric,
"Completion %" text,
Rating text,
Completions numeric,
Attempts numeric,
"Games started" numeric,
Touchdowns numeric,
Year numeric,
Games numeric,
Interceptions numeric,
"Yards/Attempt" text
);
CREATE TABLE table_2_1203292_3 (
Pick numeric,
"NBA Team" text,
Player text,
"School/Club Team" text,
Nationality text
);
CREATE TABLE table_1_1139087_2 (
Report text,
Location text,
"Pole Position" text,
"Rd." numeric,
"Fastest Lap" text,
"Grand Prix" text,
"Winning Driver" text,
Date text,
Constructor text
);
CREATE TABLE table_1_1139835_9 (
Premiership text,
Score text,
Venue text,
Season numeric,
Attendance numeric,
Premier text,
"Runner Up" text
);
CREATE TABLE table_1_10470082_4 (
Storyteller text,
Director text,
Writer text,
"No." numeric,
"US air date" text,
"#" numeric,
Title text,
Villains text
);
```
### Answer
Here is the SQL query that answers the question:
`Which player is Pick 33 and has a Nationality of USA?`
```sql
| SELECT Player FROM table_2_1203292_3 WHERE "Nationality" ILIKE '%usa%' AND "Pick" = '33' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
797,
1094,
26235,
313,
19960,
511,
825,
471,
278,
1121,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29955,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29896,
313,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29943,
7261,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29946,
29929,
29947,
29896,
29945,
29945,
29945,
29918,
29941,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
29956,
3993,
29914,
29906,
299,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29967,
10119,
1426,
29892,
13,
12,
27469,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
4782,
1426,
29892,
13,
12,
29908,
22676,
313,
9415,
5513,
1426,
29892,
13,
12,
29934,
815,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29906,
29955,
29941,
29953,
29946,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
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,
29906,
29900,
29955,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
14769,
475,
303,
1019,
6335,
654,
29908,
16985,
29892,
13,
12,
29908,
2831,
1019,
6335,
654,
29908,
16985,
29892,
13,
12,
29967,
332,
275,
29467,
1426,
29892,
13,
12,
29908,
27933,
11454,
303,
29908,
1426,
29892,
13,
12,
29908,
27933,
1152,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29953,
313,
13,
12,
14199,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
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,
797,
1094,
26235,
313,
19960,
511,
825,
471,
278,
1121,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29929,
29947,
29896,
29945,
29945,
29945,
29918,
29941,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
29909,
1557,
327,
29995,
29898,
19960,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
2890,
8647,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29929,
29947,
29896,
29945,
29945,
29945,
29918,
29941,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
29909,
1557,
327,
29995,
29898,
19960,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`In Ascot (UK), what was the result?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11734041_17 (
Player text,
"School/Club Team/Country" text,
"No.(s)" numeric,
Position text,
"Years for Rockets" text,
"Height in Ft." text
);
CREATE TABLE table_1_11658094_1 (
Institution text,
Nickname text,
Location text,
Joined text,
Type text,
Enrollment numeric,
Founded numeric
);
CREATE TABLE table_1_14981555_3 (
Result text,
"Winner/2nd" text,
Date text,
Jockey text,
Distance text,
Venue text,
Group text,
"Weight (kg)" text,
Race text
);
CREATE TABLE table_1_12027364_1 (
Year numeric,
"Mixed doubles" text,
"Mens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Womens singles" text
);
CREATE TABLE table_1_120778_1 (
"Against Prohibition" numeric,
"For Prohibition" numeric,
Jurisdiction text,
"Percent Against" text,
"Percent For" text
);
CREATE TABLE table_1_11960610_6 (
Game numeric,
Record text,
Team text,
"High assists" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
Score text
);
```
### Answer
Here is the SQL query that answers the question:
`In Ascot (UK), what was the result?`
```sql
| SELECT RESULT FROM table_1_14981555_3 WHERE "Venue" ILIKE '%Ascot%(UK)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
1248,
267,
1258,
3815,
396,
29896,
29946,
330,
2559,
28965,
505,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29900,
29947,
29900,
29896,
29946,
29918,
29896,
313,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
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,
8003,
1426,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29925,
6544,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29946,
29955,
29953,
29941,
29929,
29918,
29896,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
313,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
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,
5328,
1784,
1248,
267,
1258,
3815,
396,
29896,
29946,
330,
2559,
28965,
505,
29973,
29952,
13,
28956,
2850,
13,
5097,
2043,
267,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29900,
29947,
29900,
29896,
29946,
29918,
29896,
5754,
376,
19409,
29898,
29879,
5513,
306,
5265,
6059,
14210,
29937,
29896,
29946,
29995,
29954,
2559,
29995,
29934,
9390,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2043,
267,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29900,
29947,
29900,
29896,
29946,
29918,
29896,
5754,
376,
19409,
29898,
29879,
5513,
306,
5265,
6059,
14210,
29937,
29896,
29946,
29995,
29954,
2559,
29995,
29934,
9390,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many poles did team #14 ginn racing have?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1708014_1 (
Starts numeric,
"Top 5" numeric,
"Avg. Start" text,
"Avg. Finish" text,
Position text,
"Team(s)" text,
Year numeric,
Winnings text,
"Top 10" numeric,
Wins numeric,
Poles numeric
);
CREATE TABLE table_1_10647639_1 (
Attendance numeric,
Date text,
Result text,
Week numeric,
"Game site" text,
Opponent text,
Record text
);
CREATE TABLE table_1_10748727_1 (
Podiums numeric,
Series text,
Races numeric,
Season text,
Poles numeric,
"Team Name" text,
"F/Laps" numeric,
Points text
);
```
### Answer
Here is the SQL query that answers the question:
`How many poles did team #14 ginn racing have?`
```sql
| SELECT Poles FROM table_1_1708014_1 WHERE "Team(s)" ILIKE '%#14%Ginn%Racing%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
8778,
3815,
746,
383,
2753,
22187,
8421,
471,
278,
319,
1582,
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,
29896,
29896,
29945,
29955,
29947,
29953,
29955,
29918,
29906,
313,
13,
12,
29908,
2539,
4240,
29908,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
8431,
3955,
12959,
29908,
1426,
29892,
13,
12,
29907,
2904,
513,
414,
1426,
29892,
13,
12,
29908,
29956,
10552,
24628,
29908,
1426,
29892,
13,
12,
4557,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
29908,
29928,
1150,
292,
21266,
1379,
29908,
1426,
29892,
13,
12,
1170,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29945,
29900,
29941,
29946,
29918,
29946,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29941,
29955,
29947,
29918,
29896,
313,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
29908,
10873,
793,
29314,
29908,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
29314,
29908,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29955,
29953,
29945,
29900,
29929,
29918,
29941,
313,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29911,
347,
694,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
8778,
3815,
746,
383,
2753,
22187,
8421,
471,
278,
319,
1582,
3815,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
11184,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29955,
29953,
29945,
29900,
29929,
29918,
29941,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
29888,
2753,
22187,
29995,
27734,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29953,
29896,
29955,
29953,
29945,
29900,
29929,
29918,
29941,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
29888,
2753,
22187,
29995,
27734,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the Home team when Farnborough Town was the Away team?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1157867_2 (
"Date built" text,
Notes text,
"Boiler pressure" text,
Cylinders text,
"Wheel arrangement" text,
Number text,
Builder text,
"Driving wheels" text,
Name text
);
CREATE TABLE table_1_10975034_4 (
College text,
Position text,
Player text,
"CFL Team" text,
"Pick #" numeric
);
CREATE TABLE table_1_11900378_1 (
Surface text,
"Singles champions" text,
"Doubles champions" text,
City text,
Country text,
Tournament text
);
CREATE TABLE table_2_16176509_3 (
"Away team" text,
Date text,
Attendance numeric,
"Home team" text,
Score text,
"Tie no" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the Home team when Farnborough Town was the Away team?`
```sql
| SELECT "Home team" FROM table_2_16176509_3 WHERE "Away team" ILIKE '%farnborough%town%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3217,
1657,
278,
2533,
310,
22904,
1308,
313,
8848,
29897,
607,
756,
263,
7053,
4279,
310,
29871,
29953,
29906,
29889,
29955,
29876,
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,
29941,
29947,
29900,
29906,
29918,
29896,
313,
13,
12,
29956,
16697,
1426,
29892,
13,
12,
29908,
6330,
2198,
414,
29908,
1426,
29892,
13,
12,
29908,
18457,
29914,
13509,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
7717,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29941,
29900,
29900,
29953,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
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,
6508,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29955,
29947,
29946,
29918,
29896,
29896,
313,
13,
12,
29908,
12883,
4257,
29908,
16985,
29892,
13,
12,
29908,
1170,
3978,
29908,
1426,
29892,
13,
12,
29908,
29928,
2829,
1308,
313,
8848,
5513,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
8208,
4279,
1426,
29892,
13,
12,
13992,
4279,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
3217,
1657,
278,
2533,
310,
22904,
1308,
313,
8848,
29897,
607,
756,
263,
7053,
4279,
310,
29871,
29953,
29906,
29889,
29955,
29876,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
703,
29928,
2829,
1308,
313,
8848,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29955,
29947,
29946,
29918,
29896,
29896,
5754,
376,
13992,
4279,
29908,
306,
5265,
6059,
14210,
29953,
29906,
29889,
29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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,
5097,
22753,
703,
29928,
2829,
1308,
313,
8848,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29955,
29947,
29946,
29918,
29896,
29896,
5754,
376,
13992,
4279,
29908,
306,
5265,
6059,
14210,
29953,
29906,
29889,
29955,
29876,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`COunt the sum of Diameter (km) which has a Latitude of 62.7n?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1053802_1 (
Winners text,
"Main presenters" text,
"Region/country" text,
Network text,
"Local title" text
);
CREATE TABLE table_1_11603006_1 (
Score text,
"1st Prize( $ )" numeric,
Winner text,
"Purse( $ )" numeric,
Date text,
Location text,
Tournament text
);
CREATE TABLE table_2_16799784_11 (
"Year named" numeric,
"Name origin" text,
"Diameter (km)" numeric,
Name text,
Longitude text,
Latitude text
);
```
### Answer
Here is the SQL query that answers the question:
`COunt the sum of Diameter (km) which has a Latitude of 62.7n?`
```sql
| SELECT SUM("Diameter (km)") FROM table_2_16799784_11 WHERE "Latitude" ILIKE '%62.7n%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
7426,
363,
8950,
6020,
29871,
29896,
29929,
29953,
29945,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29900,
29953,
29896,
29906,
29918,
29929,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29906,
29929,
29900,
29896,
29929,
29947,
29918,
29941,
313,
13,
12,
29909,
1328,
1426,
29892,
13,
12,
29908,
29928,
387,
929,
8905,
29908,
1426,
29892,
13,
12,
29908,
29909,
1328,
8905,
29908,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29928,
387,
929,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
7426,
363,
8950,
6020,
29871,
29896,
29929,
29953,
29945,
29952,
13,
28956,
2850,
13,
5097,
360,
387,
929,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29906,
29929,
29900,
29896,
29929,
29947,
29918,
29941,
5754,
376,
29909,
1328,
8905,
29908,
353,
525,
29896,
29929,
29953,
29945,
29915,
5300,
376,
29909,
1328,
29908,
306,
5265,
6059,
14210,
14969,
6020,
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,
5097,
360,
387,
929,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29906,
29929,
29900,
29896,
29929,
29947,
29918,
29941,
5754,
376,
29909,
1328,
8905,
29908,
353,
525,
29896,
29929,
29953,
29945,
29915,
5300,
376,
29909,
1328,
29908,
306,
5265,
6059,
14210,
14969,
6020,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Tell me the degree for chemistry 1965`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12030612_9 (
"Written by" text,
Title text,
"Directed by" text,
"Series #" numeric,
"Season #" numeric,
"Original air date" text
);
CREATE TABLE table_2_10290198_3 (
Award text,
"Degree Year" text,
"Award Year" numeric,
Name text,
Degree text
);
```
### Answer
Here is the SQL query that answers the question:
`Tell me the degree for chemistry 1965`
```sql
| SELECT Degree FROM table_2_10290198_3 WHERE "Award Year" = '1965' AND "Award" ILIKE '%chemistry%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
3748,
756,
385,
23995,
296,
310,
29715,
3189,
29891,
4769,
322,
471,
1434,
3826,
29871,
29929,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29955,
29945,
29945,
29945,
29896,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29906,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29924,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29943,
7261,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29946,
313,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
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,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29896,
313,
13,
12,
29908,
29909,
386,
2810,
313,
6632,
29907,
5513,
1426,
29892,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
29943,
16750,
1426,
29892,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
10840,
25217,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29941,
29946,
29955,
29929,
29929,
29918,
29946,
313,
13,
12,
20097,
1426,
29892,
13,
12,
6185,
1096,
16985,
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,
29900,
29900,
29946,
29900,
29941,
29941,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29928,
4154,
4134,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29928,
4154,
23868,
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,
8809,
436,
3748,
756,
385,
23995,
296,
310,
29715,
3189,
29891,
4769,
322,
471,
1434,
3826,
29871,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
14199,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29941,
29946,
29955,
29929,
29929,
29918,
29946,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
561,
29877,
23534,
29995,
1111,
29891,
4769,
29001,
5300,
376,
6185,
1096,
29908,
529,
525,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16884,
29954,
29898,
14199,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29941,
29946,
29955,
29929,
29929,
29918,
29946,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
561,
29877,
23534,
29995,
1111,
29891,
4769,
29001,
5300,
376,
6185,
1096,
29908,
529,
525,
29929,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which game has an opponent of Phoenix Coyotes and was before Dec 9?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12275551_1 (
"Mens singles" text,
"Womens singles" text,
"Mixed doubles" text,
"Mens doubles" text,
Year numeric,
"Womens doubles" text
);
CREATE TABLE table_1_10577579_2 (
Location text,
"Mens Nickname" text,
"Womens Nickname" text,
Type text,
Joined text,
Institution text,
Enrollment numeric,
Founded numeric
);
CREATE TABLE table_1_11960944_4 (
Team text,
"High points" text,
"Location Attendance" text,
"High rebounds" text,
Date text,
"High assists" text
);
CREATE TABLE table_1_12407546_1 (
"Athlete (NOC)" text,
Shooting text,
Fencing text,
Riding text,
Total numeric,
"#" numeric,
Running text,
Swimming text
);
CREATE TABLE table_2_14034799_4 (
Score text,
December numeric,
Game numeric,
Opponent text,
Record text
);
CREATE TABLE table_1_1004033_1 (
Player text,
Position text,
Nationality text,
"Draft Class" text,
College text,
Season numeric,
"Draft Pick #" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which game has an opponent of Phoenix Coyotes and was before Dec 9?`
```sql
| SELECT AVG(Game) FROM table_2_14034799_4 WHERE "Opponent" ILIKE '%phoenix%coyotes%' AND "December" < '9' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2635,
2665,
756,
470,
291,
408,
278,
1040,
514,
362,
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,
29946,
29953,
29947,
29941,
29945,
29918,
29906,
313,
13,
12,
29908,
1433,
15081,
2635,
29908,
1426,
29892,
13,
12,
3728,
1426,
29892,
13,
12,
29908,
2539,
2665,
29908,
1426,
29892,
13,
12,
29908,
4002,
25072,
18435,
29908,
1426,
29892,
13,
12,
1168,
6236,
362,
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,
29956,
29967,
29907,
5513,
16985,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
3289,
1718,
29933,
5513,
16985,
29892,
13,
12,
29908,
10095,
307,
4038,
29908,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
399,
29967,
29907,
1723,
29908,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
1718,
7698,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29929,
29941,
29906,
29906,
29896,
29918,
29946,
313,
13,
12,
29956,
7261,
1426,
29892,
13,
12,
29968,
24455,
1426,
29892,
13,
12,
18552,
292,
1426,
29892,
13,
12,
1523,
2037,
1426,
29892,
13,
12,
8325,
1426,
29892,
13,
12,
5261,
3825,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
2635,
2665,
756,
470,
291,
408,
278,
1040,
514,
362,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
2539,
2665,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29946,
29953,
29947,
29941,
29945,
29918,
29906,
5754,
376,
1168,
6236,
362,
29908,
306,
5265,
6059,
14210,
272,
291,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2665,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29946,
29953,
29947,
29941,
29945,
29918,
29906,
5754,
376,
1168,
6236,
362,
29908,
306,
5265,
6059,
14210,
272,
291,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What date sent has orion as the constellation?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1446835_2 (
"Arrival date" text,
Message text,
"Date sent" text,
"Designation HD" text,
Constellation text
);
CREATE TABLE table_1_1131183_2 (
"Number of Jews (WJC)" numeric,
"Number of Jews (ASARB)" numeric,
"Metro area" text,
"Rank ( WJC )" numeric,
"Rank (ARDA)" numeric
);
CREATE TABLE table_1_11793221_4 (
Wounded text,
Killed text,
Missing text,
Complement text,
Unit text,
Commander text
);
```
### Answer
Here is the SQL query that answers the question:
`What date sent has orion as the constellation?`
```sql
| SELECT "Date sent" FROM table_2_1446835_2 WHERE "Constellation" ILIKE '%orion%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
25039,
1299,
317,
3210,
29949,
5607,
360,
1367,
6093,
349,
18799,
1001,
3895,
7791,
2692,
29950,
12766,
1672,
23714,
29909,
15531,
29911,
11794,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29906,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29941,
313,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
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,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
25039,
1299,
317,
3210,
29949,
5607,
360,
1367,
6093,
349,
18799,
1001,
3895,
7791,
2692,
29950,
12766,
1672,
23714,
29909,
15531,
29911,
11794,
29973,
29952,
13,
28956,
2850,
13,
5097,
4523,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29906,
5754,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
29903,
2438,
29995,
8179,
324,
1099,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4523,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29906,
5754,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
29903,
2438,
29995,
8179,
324,
1099,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677691_2 (
Hometown text,
Position text,
School text,
Player text,
College text
);
CREATE TABLE table_1_10015132_3 (
"Years in Toronto" text,
"No." numeric,
Nationality text,
"School/Club Team" text
);
```
### Answer
Here is the SQL query that answers the question:
`WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?`
```sql
| SELECT School FROM table_1_11677691_2 WHERE "College" ILIKE '%South%Carolina%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
21614,
505,
3109,
1135,
29871,
29896,
491,
29872,
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,
29955,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29946,
29900,
29896,
29906,
29945,
29918,
29896,
313,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
11536,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29955,
29946,
29946,
29946,
29955,
29918,
29946,
313,
13,
12,
29908,
29923,
4387,
362,
6588,
313,
4591,
3786,
29871,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
15666,
557,
3109,
787,
16187,
29908,
16985,
29892,
13,
12,
29908,
29925,
18049,
950,
537,
29914,
4165,
21642,
5626,
29908,
1426,
29892,
13,
12,
29908,
4035,
29885,
5367,
20410,
373,
931,
29908,
1426,
29892,
13,
12,
29908,
29923,
4387,
362,
6588,
313,
18743,
3786,
29871,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
1426,
29892,
13,
12,
29908,
29923,
4387,
362,
6588,
313,
4591,
6339,
29871,
29906,
29900,
29896,
29896,
5513,
1426,
29892,
13,
12,
29908,
29995,
310,
8178,
6161,
800,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29946,
29945,
29947,
29896,
29918,
29941,
313,
13,
12,
29908,
1170,
297,
19919,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
29892,
297,
17202,
22657,
29871,
29896,
29929,
29900,
29945,
1723,
29908,
16985,
29892,
13,
12,
2008,
271,
1426,
29892,
13,
12,
29954,
6170,
272,
403,
1426,
29892,
13,
12,
29908,
1170,
297,
10637,
29908,
1426,
29892,
13,
12,
29908,
13799,
29892,
297,
17202,
310,
2383,
29871,
29906,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
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,
29906,
29918,
29896,
29955,
29929,
29947,
29906,
29906,
29900,
29945,
29918,
29896,
313,
13,
12,
2059,
267,
16985,
29892,
13,
12,
29931,
2209,
267,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
14769,
475,
303,
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,
21614,
505,
3109,
1135,
29871,
29896,
491,
29872,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29956,
1144,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29947,
29906,
29906,
29900,
29945,
29918,
29896,
5754,
376,
2059,
267,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
29956,
1144,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29947,
29906,
29906,
29900,
29945,
29918,
29896,
5754,
376,
2059,
267,
29908,
529,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which wins have less than 1 bye?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_17 (
School text,
Hometown text,
Player text,
Position text,
"MLB Draft" text
);
CREATE TABLE table_1_10240125_1 (
"League Apps" numeric,
"Total Goals" numeric,
"Total Apps" numeric,
"FA Cup Goals" numeric,
"League Goals" numeric,
Season text,
Division text,
"FA Cup Apps" numeric
);
CREATE TABLE table_1_12074447_4 (
"Evaluation average (From April 2009)" text,
"Peak lessons taught" numeric,
"Punctuality/Attendance issues" text,
"Submitting schedule on time" text,
"Evaluation average (Before April 2009)" text,
"unnamed_0" text,
"Evaluation average (From February 2011)" text,
"% of negative evaluations" text
);
CREATE TABLE table_1_11614581_3 (
"Name in Polish" text,
"Population, in thousands,( 1905 )" numeric,
Seat text,
Governorate text,
"Name in Russian" text,
"Area, in thousands of km 2" numeric
);
CREATE TABLE table_1_1140080_2 (
"Fastest Lap" text,
Race text,
"Race Winner" text,
Report text,
Date text,
"Pole Position" text,
Location text,
Constructor text,
Rnd numeric
);
CREATE TABLE table_2_17982205_1 (
Byes numeric,
Losses numeric,
Club text,
Wins numeric,
Against numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which wins have less than 1 bye?`
```sql
| SELECT MAX(Wins) FROM table_2_17982205_1 WHERE "Byes" < '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
438,
407,
265,
1237,
297,
278,
3748,
411,
263,
4712,
310,
2420,
29889,
29871,
29906,
29945,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29946,
29955,
29955,
29941,
29953,
29918,
29906,
313,
13,
12,
29949,
407,
265,
1237,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
29928,
22138,
1144,
3291,
29908,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29955,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29900,
29941,
29945,
29918,
29896,
313,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12596,
2459,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
13,
416,
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,
6508,
1426,
29892,
13,
12,
5709,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
3306,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
438,
407,
265,
1237,
297,
278,
3748,
411,
263,
4712,
310,
2420,
29889,
29871,
29906,
29945,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29949,
407,
265,
1237,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29946,
29955,
29955,
29941,
29953,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
29889,
29995,
29906,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29949,
407,
265,
1237,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29946,
29955,
29955,
29941,
29953,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
13715,
29889,
29995,
29906,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Opponents in the game with a Date of nov. 25?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18847736_2 (
Opponents numeric,
Result text,
Attendance numeric,
Opponent text,
Game numeric,
"Dolphins points" numeric,
Record text,
Date text
);
CREATE TABLE table_1_11111116_7 (
"Original air date" text,
"Directed by" text,
"U.S. viewers (million)" text,
Title text,
"No. in season" numeric,
"Written by" text,
"No. in series" numeric
);
CREATE TABLE table_1_1214035_1 (
"Regular Season" text,
"Open Cup" text,
League text,
Year numeric,
Playoffs text,
Division text
);
CREATE TABLE table_1_10015132_2 (
Position text,
"School/Club Team" text,
Nationality text,
Player text,
"Years in Toronto" text,
"No." text
);
CREATE TABLE table_1_11604804_5 (
Founded numeric,
Location text,
Status text,
Institution text,
Color text,
Nickname text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Opponents in the game with a Date of nov. 25?`
```sql
| SELECT MIN(Opponents) FROM table_2_18847736_2 WHERE "Date" ILIKE '%nov.%25%' |